소스 검색

Fixed by Bukkit in CB #2654

GJ 12 년 전
부모
커밋
814ffbe800
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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());
     }
 }