diff --git a/src/de/steamwar/misslewars/listener/ItemListener.java b/src/de/steamwar/misslewars/listener/ItemListener.java index 1e16cd1..b18f05b 100644 --- a/src/de/steamwar/misslewars/listener/ItemListener.java +++ b/src/de/steamwar/misslewars/listener/ItemListener.java @@ -46,12 +46,10 @@ public class ItemListener extends BasicListener { if (e.getAction() != Action.RIGHT_CLICK_BLOCK && e.getAction() != Action.RIGHT_CLICK_AIR) return; - if (SpecialItem.handleUse(item, e.getPlayer())){ + if (SpecialItem.handleUse(item, e.getPlayer()) && item.getType() != Material.SPLASH_POTION) { item.setAmount(item.getAmount()-1); e.getPlayer().updateInventory(); - if (item.getType() != Material.SPLASH_POTION) { - e.setCancelled(true); - } + e.setCancelled(true); } }