Update GT_MetaTileEntity_LargeTurbine_Steam.java
This commit is contained in:
parent
ced02dc186
commit
eedfe0892e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue