Steam Turbine fixes

Removed requirement for getAverage()
This commit is contained in:
pyure 2015-08-12 15:39:42 -04:00
parent e41504b920
commit b0e064bf28

View file

@ -83,7 +83,8 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg
} }
tEU = (int) (Math.min((float) aOptFlow, totalFlow)); tEU = (int) (Math.min((float) aOptFlow, totalFlow));
addOutput(GT_ModHandler.getDistilledWater(useWater(totalFlow / 160.0f))); int waterToOutput = useWater(totalFlow / 160.0f);
addOutput(GT_ModHandler.getDistilledWater(waterToOutput));
if (totalFlow > 0 && totalFlow != aOptFlow) { if (totalFlow > 0 && totalFlow != aOptFlow) {
float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow)); float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow));
tEU *= efficiency; tEU *= efficiency;