From b0e064bf2845289415eddf1ba9a9995f867d2768 Mon Sep 17 00:00:00 2001 From: pyure Date: Wed, 12 Aug 2015 15:39:42 -0400 Subject: [PATCH] Steam Turbine fixes Removed requirement for getAverage() --- .../machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java index 2ec88a19..535069b3 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Steam.java @@ -83,7 +83,8 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg } 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) { float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow)); tEU *= efficiency;