diff --git a/src/main/java/io/wispforest/affinity/misc/util/NbtUtil.java b/src/main/java/io/wispforest/affinity/misc/util/NbtUtil.java index 7fe80758..d516782b 100644 --- a/src/main/java/io/wispforest/affinity/misc/util/NbtUtil.java +++ b/src/main/java/io/wispforest/affinity/misc/util/NbtUtil.java @@ -36,7 +36,9 @@ public static void readItemStackList(NbtCompound nbt, String key, DefaultedList< var stackNbt = (NbtCompound) element; byte idx = stackNbt.contains("Slot", NbtElement.BYTE_TYPE) ? stackNbt.getByte("Slot") : -1; - if (idx >= 0 && idx < items.size()) items.set(idx, ItemStack.fromNbtOrEmpty(registries, stackNbt)); + if (stackNbt.contains("id") && idx >= 0 && idx < items.size()) { + items.set(idx, ItemStack.fromNbtOrEmpty(registries, stackNbt)); + } } }