mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-03 14:38:53 +00:00
Fix Repiloting/Regaining Control
This commit is contained in:
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 (entity.getType() == EntityType.ARMOR_STAND) {
|
||||||
if (!(player.isSneaking()) && itemInHand.getType() == Config.controlItem) {
|
if (!(player.isSneaking()) && itemInHand.getType() == Config.controlItem) {
|
||||||
isSiegeEngine(entity, true);
|
if (isSiegeEngine(entity, false)) TakeControl(player, entity);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((itemInHand.getType() == Material.AIR || itemInHand == null)) {
|
if ((itemInHand.getType() == Material.AIR || itemInHand == null)) {
|
||||||
|
|||||||
Reference in new issue
Block a user