diff --git a/src/main/java/crazypants/enderio/machine/generator/combustion/TileCombustionGenerator.java b/src/main/java/crazypants/enderio/machine/generator/combustion/TileCombustionGenerator.java index 306964aa..425b29d3 100644 --- a/src/main/java/crazypants/enderio/machine/generator/combustion/TileCombustionGenerator.java +++ b/src/main/java/crazypants/enderio/machine/generator/combustion/TileCombustionGenerator.java @@ -210,8 +210,11 @@ public class TileCombustionGenerator extends AbstractMachineEntity implements IP //once full, don't start again until we have drained 10 seconds worth of power to prevent //flickering on and off constantly when powering a machine that draws less than this produces - if(inPause && storedEnergy >= (powerHandler.getMaxEnergyStored() - (curFuel.powerPerCycle * 200))) { - return false; + if(inPause) { + double powerPerCycle = curFuel == null ? 0 : curFuel.powerPerCycle; + if(storedEnergy >= (powerHandler.getMaxEnergyStored() - (powerPerCycle * 200))) { + return false; + } } inPause = false;