mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
Ton of null fixes
This commit is contained in:
132 files changed
+403
-325
No files matched your search
@@ -69,7 +69,7 @@ public class ItemTemperanceStone extends ItemMod {
|
||||
IInventory inv = player.inventory;
|
||||
for(int i = 0; i < inv.getSizeInventory(); i++) {
|
||||
ItemStack stack = inv.getStackInSlot(i);
|
||||
if(stack != null && stack.getItem() == ModItems.temperanceStone && stack.getItemDamage() == 1)
|
||||
if(!stack.isEmpty() && stack.getItem() == ModItems.temperanceStone && stack.getItemDamage() == 1)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user