From a3175ed39f9f30f7ee98d87cc64a7ae340b8af27 Mon Sep 17 00:00:00 2001 From: main Date: Wed, 8 May 2024 19:20:37 -0400 Subject: [PATCH] Fixed glitch. --- .../epic/rename/spikeyutils/inventory/BaseInventory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/justbru00/epic/rename/spikeyutils/inventory/BaseInventory.java b/src/main/java/com/gmail/justbru00/epic/rename/spikeyutils/inventory/BaseInventory.java index 38b8e74..3f237e8 100644 --- a/src/main/java/com/gmail/justbru00/epic/rename/spikeyutils/inventory/BaseInventory.java +++ b/src/main/java/com/gmail/justbru00/epic/rename/spikeyutils/inventory/BaseInventory.java @@ -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) {