fix NPE when using combustion engine with empty tank
This commit is contained in:
parent
e3e9404b8a
commit
fa577e2c1b
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ public class TileEngineIron extends TileEngine implements IFluidHandler {
|
|||
@Override
|
||||
public void burn() {
|
||||
FluidStack fuel = this.fuelTank.getFluid();
|
||||
if (currentFuel == null) {
|
||||
if (currentFuel == null && fuel != null) {
|
||||
currentFuel = IronEngineFuel.getFuelForFluid(fuel.getFluid());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue