Stop the cooling when it round the use to zero
This commit is contained in:
parent
f31b91d655
commit
b64fc8d844
1 changed files with 5 additions and 0 deletions
|
@ -256,6 +256,11 @@ public class TileEngineIron extends TileEngineWithInventory implements IFluidHan
|
|||
if (currentCoolant != null) {
|
||||
float cooling = currentCoolant.getDegreesCoolingPerMB(heat);
|
||||
cooling /= getBiomeTempScalar();
|
||||
|
||||
if (cooling > extraHeat) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (coolantAmount * cooling > extraHeat) {
|
||||
tankCoolant.drain(Math.round(extraHeat / cooling), true);
|
||||
heat -= extraHeat;
|
||||
|
|
Loading…
Reference in a new issue