A few crash fixes

This commit is contained in:
Aidan C. Brady committed 2015-04-01 09:06:23 -04:00
1 parent fe8cc9d1e0
commit dc0a90921a
2 files changed
+7 -2

No files matched your search

@@ -79,13 +79,13 @@ public abstract class TileEntityContainerBlock extends TileEntityBasicBlock impl
@Override
public int getSizeInventory()
{
return inventory.length;
return inventory != null ? inventory.length : 0;
}
@Override
public ItemStack getStackInSlot(int slotID)
{
return inventory[slotID];
return inventory != null ? inventory[slotID] : null;
}
@Override