fix NPE when using combustion engine with empty tank

This commit is contained in:
tomason 2013-07-18 11:56:08 +02:00
parent e3e9404b8a
commit fa577e2c1b

View file

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