Iron Engine Fix, removed the iron engine explosion options
This commit is contained in:
parent
1ca0d48e31
commit
739ef3e450
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue