mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Oopsie
This commit is contained in:
parent
900a534edb
commit
2fc1ba44d8
@ -435,7 +435,7 @@ public class InventoryListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onInventoryClickEvent(InventoryClickEvent event) {
|
public void onInventoryClickEvent(InventoryClickEvent event) {
|
||||||
SkillUtils.removeAbilityBuff(event.getCurrentItem());
|
SkillUtils.removeAbilityBuff(event.getCurrentItem());
|
||||||
if (event.getAction() == InventoryAction.HOTBAR_SWAP) {\
|
if (event.getAction() == InventoryAction.HOTBAR_SWAP) {
|
||||||
if(event.getWhoClicked().getInventory().getItem(event.getHotbarButton()) != null)
|
if(event.getWhoClicked().getInventory().getItem(event.getHotbarButton()) != null)
|
||||||
SkillUtils.removeAbilityBuff(event.getWhoClicked().getInventory().getItem(event.getHotbarButton()));
|
SkillUtils.removeAbilityBuff(event.getWhoClicked().getInventory().getItem(event.getHotbarButton()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user