Merge pull request #1014 from tomason/npe-combustion
fix NPE when using combustion engine with empty tank
This commit is contained in:
commit
16c261c478
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