diff --git a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java index 588cc4252..28de0f902 100644 --- a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java @@ -315,6 +315,11 @@ public class InventoryListener implements Listener { SkillUtils.removeAbilityBuff(event.getCurrentItem()); } + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + public void onInventoryOpenEvent(InventoryOpenEvent event) { + SkillUtils.removeAbilityBuff(event.getPlayer().getItemInHand()); + } + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onCraftItem(CraftItemEvent event) { final HumanEntity whoClicked = event.getWhoClicked();