More ItemStack fixes, thanks @thommy101

This commit is contained in:
aidancbrady committed 2017-04-10 23:45:53 -04:00
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);