From 342662c94417a92fec62e22b5cb896bdffdd5fec Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sun, 25 Jan 2015 23:28:30 -0500 Subject: [PATCH] Round 3: DeathMatch --- .../java/com/gmail/nossr50/listeners/InventoryListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java index 963092ab9..8fb34c935 100644 --- a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java @@ -315,7 +315,7 @@ public class InventoryListener implements Listener { public void onInventoryClickEvent(InventoryClickEvent event) { SkillUtils.removeAbilityBuff(event.getCurrentItem()); if (event.getAction() == InventoryAction.HOTBAR_SWAP) { - SkillUtils.removeAbilityBuff(event.getInventory().getItem(event.getHotbarButton())); + SkillUtils.removeAbilityBuff(event.getWhoClicked().getInventory().getItem(event.getHotbarButton())); } }