From 2ef3a76dcc077ee03d4343903f73cd75fd6c5dcd Mon Sep 17 00:00:00 2001 From: slprime Date: Sat, 13 Jan 2024 13:46:42 +0200 Subject: [PATCH] CraftStation: read first inventory --- src/main/java/tconstruct/tools/logic/CraftingStationLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java b/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java index 76cc32358b1..18e702f277c 100644 --- a/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java +++ b/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java @@ -131,7 +131,7 @@ public IInventory getFirstInventory() { if (doubleFirst && doubleChest != null) { return doubleChest.get(); } else { - return chest.get(); + return chest != null ? chest.get() : null; } }