From e15bc80a07d8fac46b6a510c18aeaf65cca97d63 Mon Sep 17 00:00:00 2001 From: Vaern Date: Mon, 20 Dec 2021 19:15:37 -0800 Subject: [PATCH] fixed nullpointer exception --- .../com/hbm/tileentity/machine/TileEntityMachineGasCent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/hbm/tileentity/machine/TileEntityMachineGasCent.java b/src/main/java/com/hbm/tileentity/machine/TileEntityMachineGasCent.java index d051b7cd1..30e6c37e8 100644 --- a/src/main/java/com/hbm/tileentity/machine/TileEntityMachineGasCent.java +++ b/src/main/java/com/hbm/tileentity/machine/TileEntityMachineGasCent.java @@ -290,7 +290,7 @@ public class TileEntityMachineGasCent extends TileEntityMachineBase implements I TileEntity te = worldObj.getTileEntity(this.xCoord - dir.offsetX, this.yCoord, this.zCoord - dir.offsetZ); if(attemptTransfer(te) && this.inputTank.getTankType() == PseudoFluidType.LEUF6) { - if(this.outputTank.getFill() >= 100 && (slots[4] == null || slots[4].getItem() == ModItems.nugget_uranium_fuel) && slots[4].stackSize + 1 <= slots[4].getMaxStackSize()) { + if(this.outputTank.getFill() >= 100 && (slots[4] == null || (slots[4].getItem() == ModItems.nugget_uranium_fuel && slots[4].stackSize + 1 <= slots[4].getMaxStackSize()))) { this.outputTank.setFill(this.outputTank.getFill() - 100); if(slots[4] == null) { slots[4] = new ItemStack(ModItems.nugget_uranium_fuel, 1);