Fix efficiency penalty incorrectly applied to large gas+plasma turbines
This is a copy-paste error from the original code in the large steam turbine. `aOptFlow` is the optimal flow rate expressed in EU/t, while `totalFlow` is expressed in fuel L/t
This commit is contained in:
parent
c0f6a4e77a
commit
06636fd149
2 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT
|
|||
|
||||
if (totalFlow != actualOptimalFlow) {
|
||||
float efficiency = 1.0f - Math.abs(((totalFlow - (float) actualOptimalFlow) / actualOptimalFlow));
|
||||
if(totalFlow>aOptFlow){efficiency = 1.0f;}
|
||||
if(totalFlow>actualOptimalFlow){efficiency = 1.0f;}
|
||||
if (efficiency < 0)
|
||||
efficiency = 0; // Can happen with really ludicrously poor inefficiency.
|
||||
tEU *= efficiency;
|
||||
|
|
|
@ -125,7 +125,7 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar
|
|||
|
||||
if (totalFlow != actualOptimalFlow) {
|
||||
float efficiency = 1.0f - Math.abs(((totalFlow - (float) actualOptimalFlow) / actualOptimalFlow));
|
||||
if(totalFlow>aOptFlow){efficiency = 1.0f;}
|
||||
if(totalFlow>actualOptimalFlow){efficiency = 1.0f;}
|
||||
if (efficiency < 0)
|
||||
efficiency = 0; // Can happen with really ludicrously poor inefficiency.
|
||||
tEU *= efficiency;
|
||||
|
|
Loading…
Reference in a new issue