Merge pull request #2535 from viliml/6.5.x

Fix #2530
This commit is contained in:
Adrian Siekierka 2015-03-07 22:13:33 +01:00
commit ffdf2f06a1

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;