From 4ddffc14da5f26e5ded8c589a8127119b7f525d0 Mon Sep 17 00:00:00 2001 From: DeadSilenceIV Date: Sat, 2 Jul 2022 13:48:10 -0500 Subject: [PATCH] AdvancedChests hook was updated to support the new API version. --- pom.xml | 2 +- .../de/jeff_media/chestsort/hooks/AdvancedChestsHook.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 9219184..793ff32 100644 --- a/pom.xml +++ b/pom.xml @@ -264,7 +264,7 @@ com.github.DeadSilenceIV AdvancedChestsAPI - 2.4 + 2.9-BETA provided diff --git a/src/main/java/de/jeff_media/chestsort/hooks/AdvancedChestsHook.java b/src/main/java/de/jeff_media/chestsort/hooks/AdvancedChestsHook.java index 39f1532..4d9e5b7 100644 --- a/src/main/java/de/jeff_media/chestsort/hooks/AdvancedChestsHook.java +++ b/src/main/java/de/jeff_media/chestsort/hooks/AdvancedChestsHook.java @@ -45,9 +45,9 @@ public class AdvancedChestsHook { public boolean handleAChestSortingIfPresent(Location location){ if(!plugin.isHookAdvancedChests())return false; - AdvancedChest chest = AdvancedChestsAPI.getChestManager().getAdvancedChest(location); + AdvancedChest chest = AdvancedChestsAPI.getChestManager().getAdvancedChest(location); if(chest != null){ - for (ChestPage page : chest.getPages()) { + for (ChestPage page : chest.getPages()) { Inventory inventory = page.getBukkitInventory(); plugin.getOrganizer().sortInventory(inventory,0,inventory.getSize()-10); }