From 7c09c244999d52ee816cf2a33b9ba391e1c8be1e Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Tue, 21 Jan 2014 20:24:36 -0800 Subject: [PATCH] Add NPE check in Iron Engine Closes #1420 --- common/buildcraft/energy/TileEngineIron.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buildcraft/energy/TileEngineIron.java b/common/buildcraft/energy/TileEngineIron.java index fd05b1d6..3c450b50 100644 --- a/common/buildcraft/energy/TileEngineIron.java +++ b/common/buildcraft/energy/TileEngineIron.java @@ -147,7 +147,7 @@ public class TileEngineIron extends TileEngineWithInventory implements IFluidHan lastPowered = true; - if (burnTime > 0 || fuel.amount > 0) { + if (burnTime > 0 || (fuel != null && fuel.amount > 0)) { if (burnTime > 0) { burnTime--; }