diff options
Diffstat (limited to 'src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java')
-rw-r--r-- | src/main/java/de/torui/coflsky/handlers/DescriptionHandler.java | 5 |
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(); |