Fix Repiloting/Regaining Control

This commit is contained in:
C_Corp2002 authored and GitHub committed 2024-01-21 17:36:11 -05:00
1 parent dfcfad5e37
commit 892a8beadc
1 file changed
+1 -1
@@ -1034,7 +1034,7 @@ public class ClickHandler implements Listener {
}
if (entity.getType() == EntityType.ARMOR_STAND) {
if (!(player.isSneaking()) && itemInHand.getType() == Config.controlItem) {
isSiegeEngine(entity, true);
if (isSiegeEngine(entity, false)) TakeControl(player, entity);
return;
}
if ((itemInHand.getType() == Material.AIR || itemInHand == null)) {