Iron Engine Fix, removed the iron engine explosion options

This commit is contained in:
ZeldoKavira 2012-07-25 12:07:09 -04:00
parent 1ca0d48e31
commit 739ef3e450

View file

@ -140,12 +140,15 @@ public class EngineIron extends Engine {
int extraHeat = heat - COOLANT_THRESHOLD;
IronEngineCoolant currentCoolant = IronEngineCoolant.getCoolantForLiquid(new LiquidStack(coolantId, coolantQty, 0));
if(coolantQty * currentCoolant.coolingPerUnit > extraHeat) {
coolantQty -= Math.round(extraHeat / currentCoolant.coolingPerUnit);
heat = COOLANT_THRESHOLD;
} else {
heat -= coolantQty * currentCoolant.coolingPerUnit;
coolantQty = 0;
if (currentCoolant != null)
{
if(coolantQty * currentCoolant.coolingPerUnit > extraHeat) {
coolantQty -= Math.round(extraHeat / currentCoolant.coolingPerUnit);
heat = COOLANT_THRESHOLD;
} else {
heat -= coolantQty * currentCoolant.coolingPerUnit;
coolantQty = 0;
}
}
}