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:
parent
189f9ad524
commit
4cffb39941
@ -458,7 +458,7 @@ public abstract class SiegeWeapon implements Listener
|
|||||||
|
|
||||||
private void dismount(Player player)
|
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)
|
protected void handleLeftClick(Player player)
|
||||||
|
Loading…
Reference in New Issue
Block a user