Round 3: DeathMatch

This commit is contained in:
t00thpick1 2015-01-25 23:28:30 -05:00
parent 50088fe0bd
commit 342662c944

View File

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