mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 06:24:27 +00:00
Ton of null fixes
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user