From 050d8da158b6bac386d7bfa43871938afc4d0dca Mon Sep 17 00:00:00 2001 From: Äkwav Date: Tue, 11 Oct 2022 22:43:16 +0200 Subject: fix chestname missing from updates --- src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/de/torui/coflsky/handlers') 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(); -- cgit