mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
More ItemStack fixes, thanks @thommy101
This commit is contained in:
1 parent
ac8de88413
commit
9db5a37d4b
24 files changed
+49
-50
No files matched your search
@@ -166,7 +166,7 @@ public class SchematicBlock extends SchematicBlockBase {
|
||||
NBTTagList rq = new NBTTagList();
|
||||
|
||||
for (ItemStack stack : storedRequirements) {
|
||||
if (stack == null || stack.getItem() == null) throw new IllegalStateException("Found a null requirement! " + getClass());
|
||||
if (stack.isEmpty() || stack.getItem() == null) throw new IllegalStateException("Found a null requirement! " + getClass());
|
||||
NBTTagCompound sub = new NBTTagCompound();
|
||||
stack.writeToNBT(sub);
|
||||
rq.appendTag(sub);
|
||||
|
||||
Reference in new issue
Block a user