Răsfoiți Sursa

Fixed by Bukkit in CB #2654

GJ 12 ani în urmă
părinte
comite
814ffbe800

+ 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());
     }
 }