From 9e0f71dae4eb4c98fbfaf3d6f213fc734b62d023 Mon Sep 17 00:00:00 2001 From: Bysokar Date: Sun, 28 Jul 2019 07:57:26 +1000 Subject: [PATCH] wip --- .../java/mekanism/common/inventory/InventoryPersonalChest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mekanism/common/inventory/InventoryPersonalChest.java b/src/main/java/mekanism/common/inventory/InventoryPersonalChest.java index 738617bbf..b9d147453 100644 --- a/src/main/java/mekanism/common/inventory/InventoryPersonalChest.java +++ b/src/main/java/mekanism/common/inventory/InventoryPersonalChest.java @@ -85,7 +85,7 @@ public class InventoryPersonalChest extends InventoryBasic return; } - if (!(getStack().getItem() instanceof ISustainedInventory)) return; + if (getStack() != null && !(getStack().getItem() instanceof ISustainedInventory)) return; reading = true; NBTTagList tagList = ((ISustainedInventory)getStack().getItem()).getInventory(getStack());