Stop the cooling when it round the use to zero

This commit is contained in:
viliml 2015-03-07 21:54:36 +01:00
parent f31b91d655
commit b64fc8d844

View file

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