From b2e202939b6d95ed1082cbfa20ead4af123f95df Mon Sep 17 00:00:00 2001 From: chochem <40274384+chochem@users.noreply.github.com> Date: Wed, 2 Nov 2022 17:03:53 +0000 Subject: PSS incorrect loss fixed (#417) * PSS loss fix * spotless --- .../storage/GregtechMetaTileEntity_PowerSubStationController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/gtPlusPlus') 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); } -- cgit