aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/handlers
diff options
context:
space:
mode:
authorÄkwav <ekwav@coflnet.com>2022-10-11 22:43:16 +0200
committerÄkwav <ekwav@coflnet.com>2022-10-11 22:43:16 +0200
commit050d8da158b6bac386d7bfa43871938afc4d0dca (patch)
treee8d874468ebb29d4179496271bad844ed1a1f270 /src/main/java/de/torui/coflsky/handlers
parent42ff9abd7a9ccb993a116fceb3e00b4eb0e5b878 (diff)
downloadCOFL-050d8da158b6bac386d7bfa43871938afc4d0dca.tar.gz
COFL-050d8da158b6bac386d7bfa43871938afc4d0dca.tar.bz2
COFL-050d8da158b6bac386d7bfa43871938afc4d0dca.zip
fix chestname missing from updates
Diffstat (limited to 'src/main/java/de/torui/coflsky/handlers')
-rw-r--r--src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java b/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
index 34d89ad..8fb70f9 100644
--- a/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
+++ b/src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java
@@ -131,8 +131,9 @@ public class DescriptionHandler {
private static void loadDescriptionForInventory(GuiOpenEvent event, GuiContainer gc, boolean skipLoadCheck) {
InventoryWrapper wrapper = new InventoryWrapper();
- if (event.gui instanceof GuiChest && !skipLoadCheck){
- waitForChestContentLoad(event, gc);
+ if (event.gui instanceof GuiChest) {
+ if(!skipLoadCheck)
+ waitForChestContentLoad(event, gc);
ContainerChest chest = (ContainerChest) ((GuiChest) event.gui).inventorySlots;
IInventory inv = chest.getLowerChestInventory();