aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-04 12:48:13 +0900
committersyeyoung <cyong06@naver.com>2021-01-04 12:48:13 +0900
commitc9f71d77a5912a70546d6a0950d7f8c2bb4c89db (patch)
tree178b888f877b489d20bef311662e9b15a023c6d5 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java
parentec76162b0017cbfb546038e4d55a1f062d99412a (diff)
downloadSkyblock-Dungeons-Guide-c9f71d77a5912a70546d6a0950d7f8c2bb4c89db.tar.gz
Skyblock-Dungeons-Guide-c9f71d77a5912a70546d6a0950d7f8c2bb4c89db.tar.bz2
Skyblock-Dungeons-Guide-c9f71d77a5912a70546d6a0950d7f8c2bb4c89db.zip
spirit boots, some fixes
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java
index 33d2c9eb..f8069d73 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureInstaCloseChest.java
@@ -26,7 +26,7 @@ import java.util.TreeSet;
public class FeatureInstaCloseChest extends SimpleFeature implements GuiOpenListener, TickListener {
public FeatureInstaCloseChest() {
- super("QoL", "Auto-Close Secret Chest", "Automatically closes Secret Chest as soon as you open it\nCan put item price threshold by clicking edit", "qol.autoclose", false);
+ super("Dungeon", "Auto-Close Secret Chest", "Automatically closes Secret Chest as soon as you open it\nCan put item price threshold by clicking edit", "qol.autoclose", false);
parameters.put("threshold", new FeatureParameter<Integer>("threshold", "Price Threshold", "The maximum price of item for chest to be closed. Default 1m", 1000000, "integer"));
}
@@ -40,7 +40,9 @@ public class FeatureInstaCloseChest extends SimpleFeature implements GuiOpenList
if (!(event.gui instanceof GuiChest)) return;
ContainerChest ch = (ContainerChest) ((GuiChest)event.gui).inventorySlots;
- if (!"container.chest".equals(ch.getLowerChestInventory().getName())) return;
+ System.out.println(ch.getLowerChestInventory().getName());
+ if (!("Large Chest".equals(ch.getLowerChestInventory().getName())
+ || "Chest".equals(ch.getLowerChestInventory().getName()))) return;
check = true;
}