Skip to content

Commit

Permalink
fix issue with previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 12, 2019
1 parent e70ac31 commit e43e4d0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -199,7 +199,7 @@ else if (name.equals("hotbar_button")) {
@EventHandler
public void inventoryClickEvent(InventoryClickEvent event) {
inventory = InventoryTag.mirrorBukkitInventory(event.getInventory());
item = event.getCurrentItem() != null ? new ItemTag(Material.AIR) : new ItemTag(event.getCurrentItem());
item = event.getCurrentItem() == null ? new ItemTag(Material.AIR) : new ItemTag(event.getCurrentItem());
this.event = event;
fire(event);
}
Expand Down

0 comments on commit e43e4d0

Please sign in to comment.