Merge pull request #1014 from tomason/npe-combustion

fix NPE when using combustion engine with empty tank
This commit is contained in:
CovertJaguar 2013-07-18 14:23:11 -07:00
commit 16c261c478

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