Skip to content

Commit

Permalink
Fixed glitch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spikey84 committed May 8, 2024
1 parent 0baeb1e commit a3175ed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void open(Player player) {
public void onClick(InventoryClickEvent event) {

if (event.getClickedInventory() == null) return;
if (!((Player) event.getWhoClicked()).equals(player)) return;

if (!event.getClickedInventory().equals(inventory)) {
if (event.getClickedInventory().equals(event.getWhoClicked().getInventory()) && isOpen) {
Expand Down

0 comments on commit a3175ed

Please sign in to comment.