Update GT_MetaTileEntity_LargeTurbine_HPSteam.java

This commit is contained in:
Daniel 2016-09-03 12:15:19 +02:00 committed by Dream-Master
parent 6d536a232a
commit 05911e2fbd

View file

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