Browse Source

Fixed by Bukkit in CB #2654

GJ 12 years ago
parent
commit
814ffbe800
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/main/java/com/gmail/nossr50/listeners/InventoryListener.java

+ 1 - 3
src/main/java/com/gmail/nossr50/listeners/InventoryListener.java

@@ -157,8 +157,6 @@ public class InventoryListener implements Listener {
 
     @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
     public void onInventoryClickEvent(InventoryClickEvent event) {
-        if (event.getSlot() >= 0) {
-            SkillUtils.removeAbilityBuff(event.getCurrentItem());
-        }
+        SkillUtils.removeAbilityBuff(event.getCurrentItem());
     }
 }