From b91d94c2af583fa326c63ae034f223948bfab6f9 Mon Sep 17 00:00:00 2001 From: Peaches_MLG Date: Tue, 29 Mar 2022 16:49:25 +0100 Subject: [PATCH] BugFix --- .../java/com/iridium/iridiumskyblock/gui/IslandRewardsGUI.java | 1 + .../java/com/iridium/iridiumskyblock/gui/IslandTrustedGUI.java | 1 + .../java/com/iridium/iridiumskyblock/gui/IslandVisitorsGUI.java | 1 + src/main/java/com/iridium/iridiumskyblock/gui/VisitGUI.java | 1 + 4 files changed, 4 insertions(+) diff --git a/src/main/java/com/iridium/iridiumskyblock/gui/IslandRewardsGUI.java b/src/main/java/com/iridium/iridiumskyblock/gui/IslandRewardsGUI.java index c0ee60118..c4745d941 100644 --- a/src/main/java/com/iridium/iridiumskyblock/gui/IslandRewardsGUI.java +++ b/src/main/java/com/iridium/iridiumskyblock/gui/IslandRewardsGUI.java @@ -57,6 +57,7 @@ public ItemStack getItemStack(IslandReward islandReward) { @Override public void onInventoryClick(InventoryClickEvent event) { + super.onInventoryClick(event); IslandReward islandReward = getItem(event.getSlot()); if (islandReward == null) return; islandReward.getReward().claim((Player) event.getWhoClicked(), island); diff --git a/src/main/java/com/iridium/iridiumskyblock/gui/IslandTrustedGUI.java b/src/main/java/com/iridium/iridiumskyblock/gui/IslandTrustedGUI.java index fa03f805f..c9121ecaa 100644 --- a/src/main/java/com/iridium/iridiumskyblock/gui/IslandTrustedGUI.java +++ b/src/main/java/com/iridium/iridiumskyblock/gui/IslandTrustedGUI.java @@ -69,6 +69,7 @@ public ItemStack getItemStack(IslandTrusted islandTrusted) { */ @Override public void onInventoryClick(InventoryClickEvent event) { + super.onInventoryClick(event); IslandTrusted islandTrusted = getItem(event.getSlot()); if (islandTrusted == null) return; IridiumSkyblock.getInstance().getCommands().unTrustCommand.execute(event.getWhoClicked(), new String[]{"", islandTrusted.getUser().getName()}); diff --git a/src/main/java/com/iridium/iridiumskyblock/gui/IslandVisitorsGUI.java b/src/main/java/com/iridium/iridiumskyblock/gui/IslandVisitorsGUI.java index f6e88ecc5..b98fc949c 100644 --- a/src/main/java/com/iridium/iridiumskyblock/gui/IslandVisitorsGUI.java +++ b/src/main/java/com/iridium/iridiumskyblock/gui/IslandVisitorsGUI.java @@ -68,6 +68,7 @@ public ItemStack getItemStack(User user) { */ @Override public void onInventoryClick(InventoryClickEvent event) { + super.onInventoryClick(event); User visitor = getItem(event.getSlot()); if (visitor == null) return; if (event.isLeftClick()) { diff --git a/src/main/java/com/iridium/iridiumskyblock/gui/VisitGUI.java b/src/main/java/com/iridium/iridiumskyblock/gui/VisitGUI.java index 68a08e1ba..c7b211dbd 100644 --- a/src/main/java/com/iridium/iridiumskyblock/gui/VisitGUI.java +++ b/src/main/java/com/iridium/iridiumskyblock/gui/VisitGUI.java @@ -65,6 +65,7 @@ public ItemStack getItemStack(Island island) { */ @Override public void onInventoryClick(InventoryClickEvent event) { + super.onInventoryClick(event); Island island = getItem(event.getSlot()); if (island == null) return; IridiumSkyblock.getInstance().getCommands().visitCommand.execute(event.getWhoClicked(), new String[]{"", island.getOwner().getName()});