Skip to content

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Mar 29, 2022
1 parent f055e00 commit b91d94c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()});
Expand Down

0 comments on commit b91d94c

Please sign in to comment.