Skip to content

Commit

Permalink
cursor.getType() == null check
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins committed Sep 3, 2023
1 parent 6f194a6 commit c06e316
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public boolean onClick(Player p, int slot, ItemStack cursor, ClickAction action)

@Override
public boolean onClick(InventoryClickEvent e, Player p, int slot, ItemStack cursor, ClickAction action) {
return cursor == null || cursor.getType() == Material.AIR;
return cursor == null || cursor.getType() == null || cursor.getType() == Material.AIR;
}
});
}
Expand Down

0 comments on commit c06e316

Please sign in to comment.