aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchochem <40274384+chochem@users.noreply.github.com>2022-11-02 17:03:53 +0000
committerGitHub <noreply@github.com>2022-11-02 18:03:53 +0100
commitb2e202939b6d95ed1082cbfa20ead4af123f95df (patch)
tree8a8fc595aaeac186984b1ea51eccd4239dac1157
parentc082ea13dd80699fb34fbd557f8d509f9d279011 (diff)
downloadGT5-Unofficial-b2e202939b6d95ed1082cbfa20ead4af123f95df.tar.gz
GT5-Unofficial-b2e202939b6d95ed1082cbfa20ead4af123f95df.tar.bz2
GT5-Unofficial-b2e202939b6d95ed1082cbfa20ead4af123f95df.zip
PSS incorrect loss fixed (#417)
* PSS loss fix * spotless
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
index 5b1b85b31a..b2cd2b9369 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
@@ -638,8 +638,9 @@ public class GregtechMetaTileEntity_PowerSubStationController
private long computeEnergyTax() {
float mTax = mAverageEuUsage * (ENERGY_TAX / 100f);
- // Increase tax up to 2x if machine is not fully repaired
- mTax = mTax * (1f + (10000f - mEfficiency) / 10000f);
+ // Increase tax up to 2x if machine is not fully repaired (does not actually work at the moment, mEfficiency is
+ // always 0)
+ // mTax = mTax * (1f + (10000f - mEfficiency) / 10000f);
return MathUtils.roundToClosestLong(mTax);
}