Ton of null fixes

This commit is contained in:
Vincent Lee committed 2017-01-05 03:44:13 -06:00
1 parent a87dd1d46b
commit 24779ded1c
132 files changed
+403 -325

No files matched your search

@@ -56,7 +56,7 @@ public class TileOpenCrate extends TileSimpleInventory {
if(canEject()) {
ItemStack stack = itemHandler.getStackInSlot(0);
if(stack != null)
if(!stack.isEmpty())
eject(stack, redstone);
}
}
@@ -80,7 +80,7 @@ public class TileOpenCrate extends TileSimpleInventory {
}
itemHandler.setStackInSlot(0, null);
itemHandler.setStackInSlot(0, ItemStack.EMPTY);
world.spawnEntity(item);
}