Update GT_MetaTileEntity_LargeTurbine_Steam.java

This commit is contained in:
Daniel 2016-09-03 12:16:06 +02:00 committed by Dream-Master
parent ced02dc186
commit eedfe0892e

View file

@ -111,9 +111,9 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg
float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow));
if(totalFlow>aOptFlow){efficiency = 1.0f;}
tEU *= efficiency;
tEU = Math.max(1, tEU * aBaseEff / 20000);
tEU = Math.max(1, (int)((long)tEU * (long)aBaseEff / 20000L));
} else {
tEU = tEU * aBaseEff / 20000;
tEU = (int)((long)tEU * (long)aBaseEff / 20000L);
}
return tEU;