From c9266456732a1578a16789ff2ce0d4c11805e0bb Mon Sep 17 00:00:00 2001 From: IThundxr Date: Mon, 19 Feb 2024 20:22:34 -0500 Subject: [PATCH] Maybe fix #1080 --- .../simibubi/create/content/contraptions/MountedStorage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/MountedStorage.java b/src/main/java/com/simibubi/create/content/contraptions/MountedStorage.java index c0ce84da1f..cbfd86a20d 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/MountedStorage.java +++ b/src/main/java/com/simibubi/create/content/contraptions/MountedStorage.java @@ -167,7 +167,8 @@ public void addStorageToWorld(BlockEntity be) { // we need to remove whatever is in there to fill with our modified contents TransferUtil.clearStorage(teHandler); for (StorageView view : handler.nonEmptyIterable()) { - teHandler.insert(view.getResource(), view.getAmount(), t); + if (!view.getResource().isBlank() && view.getResource() != ItemVariant.blank()) + teHandler.insert(view.getResource(), view.getAmount(), t); } t.commit(); }