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) { if (currentCoolant != null) {
float cooling = currentCoolant.getDegreesCoolingPerMB(heat); float cooling = currentCoolant.getDegreesCoolingPerMB(heat);
cooling /= getBiomeTempScalar(); cooling /= getBiomeTempScalar();
if (cooling > extraHeat) {
return;
}
if (coolantAmount * cooling > extraHeat) { if (coolantAmount * cooling > extraHeat) {
tankCoolant.drain(Math.round(extraHeat / cooling), true); tankCoolant.drain(Math.round(extraHeat / cooling), true);
heat -= extraHeat; heat -= extraHeat;