Merge pull request #507 from gishicrafter/patch-4
Fixed EngineIron fuel acceptance problem. Closes #501
This commit is contained in:
commit
33a5be3284
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ public class EngineIron extends Engine {
|
||||||
if (burnTime > 0) {
|
if (burnTime > 0) {
|
||||||
burnTime--;
|
burnTime--;
|
||||||
} else {
|
} else {
|
||||||
fuel.amount--;
|
if(--fuel.amount <= 0) fuelTank.setLiquid(null);
|
||||||
burnTime = currentFuel.totalBurningTime / LiquidContainerRegistry.BUCKET_VOLUME;
|
burnTime = currentFuel.totalBurningTime / LiquidContainerRegistry.BUCKET_VOLUME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ public class EngineIron extends Engine {
|
||||||
heat = COOLANT_THRESHOLD;
|
heat = COOLANT_THRESHOLD;
|
||||||
} else {
|
} else {
|
||||||
heat -= coolant.amount * currentCoolant.coolingPerUnit;
|
heat -= coolant.amount * currentCoolant.coolingPerUnit;
|
||||||
coolant.amount = 0;
|
coolantTank.setLiquid(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue