Fix null issue with last cherry pick
This commit is contained in:
parent
bbf93c3ae3
commit
fe9d1defdc
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ public class TileMatterFabricator extends TilePowerAcceptor
|
|||
if (!super.world.isRemote) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
final ItemStack stack = this.inventory.getStackInSlot(i);
|
||||
if (stack != null) {
|
||||
if (!stack.isEmpty()) {
|
||||
final int amp = this.getValue(stack);
|
||||
if(amp != 0 && this.canUseEnergy(85)){
|
||||
this.useEnergy(85);
|
||||
|
|
Loading…
Reference in a new issue