From 93f9c25ba8511a06f66b86a993310d053a1274d9 Mon Sep 17 00:00:00 2001 From: gishicrafter Date: Fri, 14 Dec 2012 20:59:49 +0900 Subject: [PATCH] Fixed EngineIron fuel acceptance problem. --- common/buildcraft/energy/EngineIron.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/energy/EngineIron.java b/common/buildcraft/energy/EngineIron.java index fef2bd4c..89e075f2 100644 --- a/common/buildcraft/energy/EngineIron.java +++ b/common/buildcraft/energy/EngineIron.java @@ -106,7 +106,7 @@ public class EngineIron extends Engine { if (burnTime > 0) { burnTime--; } else { - fuel.amount--; + if(--fuel.amount <= 0) fuelTank.setLiquid(null); burnTime = currentFuel.totalBurningTime / LiquidContainerRegistry.BUCKET_VOLUME; } @@ -154,7 +154,7 @@ public class EngineIron extends Engine { heat = COOLANT_THRESHOLD; } else { heat -= coolant.amount * currentCoolant.coolingPerUnit; - coolant.amount = 0; + coolantTank.setLiquid(null); } } }