From 4cffb399410e2b5999b55f88de638572f15eec73 Mon Sep 17 00:00:00 2001 From: cnr Date: Sat, 30 Apr 2016 22:02:22 -0500 Subject: [PATCH] Delay dismount teleport by one tick This mitigates a stack overflow caused by a teleport before a dismount event processes fully. --- .../src/mineplex/game/clans/clans/siege/weapon/SiegeWeapon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/SiegeWeapon.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/SiegeWeapon.java index 7974c50c4..94bc96849 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/SiegeWeapon.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/SiegeWeapon.java @@ -458,7 +458,7 @@ public abstract class SiegeWeapon implements Listener private void dismount(Player player) { - player.teleport(player.getLocation().add(0, 1, 0)); + _clans.runSync(() -> player.teleport(player.getLocation().add(0, 1, 0))); } protected void handleLeftClick(Player player)