Delay dismount teleport by one tick

This mitigates a stack overflow caused by a teleport before a dismount
event processes fully.
This commit is contained in:
cnr 2016-04-30 22:02:22 -05:00
parent 189f9ad524
commit 4cffb39941

View File

@ -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)