Update GT_MetaTileEntity_LargeTurbine_Steam.java

This commit is contained in:
Daniel 2016-09-03 12:16:06 +02:00 committed by GitHub
parent 90b1f5b910
commit b25332780a

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)); float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow));
if(totalFlow>aOptFlow){efficiency = 1.0f;} if(totalFlow>aOptFlow){efficiency = 1.0f;}
tEU *= efficiency; tEU *= efficiency;
tEU = Math.max(1, tEU * aBaseEff / 20000); tEU = Math.max(1, (int)((long)tEU * (long)aBaseEff / 20000L));
} else { } else {
tEU = tEU * aBaseEff / 20000; tEU = (int)((long)tEU * (long)aBaseEff / 20000L);
} }
return tEU; return tEU;