Fixed EngineIron fuel acceptance problem.

This commit is contained in:
gishicrafter 2012-12-14 20:59:49 +09:00
parent 9c0e9205cf
commit 93f9c25ba8

View file

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