diff --git a/src/main/java/com/garbagemule/MobArena/ArenaListener.java b/src/main/java/com/garbagemule/MobArena/ArenaListener.java index efb669f..13cdb29 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaListener.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaListener.java @@ -978,7 +978,7 @@ public class ArenaListener } // Bail if off-hand or if there's no block involved. - if (event.getHand().equals(EquipmentSlot.OFF_HAND) || !event.hasBlock()) + if (event.getHand() == EquipmentSlot.OFF_HAND || !event.hasBlock()) return; // Iron block diff --git a/src/main/java/com/garbagemule/MobArena/commands/setup/SetupCommand.java b/src/main/java/com/garbagemule/MobArena/commands/setup/SetupCommand.java index dd609f6..e1161c7 100644 --- a/src/main/java/com/garbagemule/MobArena/commands/setup/SetupCommand.java +++ b/src/main/java/com/garbagemule/MobArena/commands/setup/SetupCommand.java @@ -254,7 +254,7 @@ public class SetupCommand implements Command, Listener { Player p = event.getPlayer(); if (!p.equals(player)) return; - if (event.getHand().equals(EquipmentSlot.OFF_HAND)) return; + if (event.getHand() == EquipmentSlot.OFF_HAND) return; ItemStack tool = p.getItemInHand(); if (!isTool(tool)) return;