A bunch more null check \o/
This commit is contained in:
parent
97e5fcc032
commit
5dff31d937
19 changed files with 33 additions and 29 deletions
|
@ -39,7 +39,7 @@ public class ItemBattery extends ItemTRNoDestroy implements IEnergyItemInfo {
|
|||
World worldIn,
|
||||
@Nullable
|
||||
EntityLivingBase entityIn) {
|
||||
if (stack != null && PoweredItem.getEnergy(stack) == 0.0) {
|
||||
if (stack != ItemStack.EMPTY && PoweredItem.getEnergy(stack) == 0.0) {
|
||||
return 1.0F;
|
||||
}
|
||||
return 0.0F;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue