Fix null issue with last cherry pick

This commit is contained in:
modmuss50 2017-03-13 11:04:10 +00:00
parent bbf93c3ae3
commit fe9d1defdc
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -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);