diff --git a/zip-plugin/src/main/java/net/imprex/zip/BackpackListener.java b/zip-plugin/src/main/java/net/imprex/zip/BackpackListener.java index 7a2b896..0656fae 100644 --- a/zip-plugin/src/main/java/net/imprex/zip/BackpackListener.java +++ b/zip-plugin/src/main/java/net/imprex/zip/BackpackListener.java @@ -98,10 +98,9 @@ public void onPlayerDropItem(PlayerDropItemEvent event) { public void onPlayerInteract(PlayerInteractEvent event) { if ((event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) - && event.getHand() == EquipmentSlot.HAND) { - if (this.backpackHandler.isBackpack(event.getItem())) { - event.setCancelled(true); - } + && event.getHand() == EquipmentSlot.HAND + && this.backpackHandler.isBackpack(event.getItem())) { + event.setCancelled(true); Backpack backpack = this.backpackHandler.getBackpack(event.getItem()); if (backpack != null) {