diff options
author | Abdiel Kavash <19243993+AbdielKavash@users.noreply.github.com> | 2024-11-20 11:08:11 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 18:08:11 +0100 |
commit | 36acbb9baed7dae4e19fde7a95852b7d002b2f5c (patch) | |
tree | 373ef20415a65c444a214a5398b6c550cfc2b5df /src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java | |
parent | 4ecb0005608fb5774dee56eb751c850d862fa98d (diff) | |
download | GT5-Unofficial-36acbb9baed7dae4e19fde7a95852b7d002b2f5c.tar.gz GT5-Unofficial-36acbb9baed7dae4e19fde7a95852b7d002b2f5c.tar.bz2 GT5-Unofficial-36acbb9baed7dae4e19fde7a95852b7d002b2f5c.zip |
Follow up fixes for multiple muffler hatches. (#3505)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java index 09bfda2d0a..9ff7f34fe3 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/MTEExtendedPowerMultiBlockBase.java @@ -2,7 +2,6 @@ package gregtech.api.metatileentity.implementations; import static gregtech.api.enums.GTValues.VN; import static gregtech.api.util.GTUtility.filterValidMTEs; -import static gregtech.api.util.GTUtility.validMTEList; import java.util.ArrayList; import java.util.List; @@ -138,11 +137,6 @@ public abstract class MTEExtendedPowerMultiBlockBase<T extends MTEEnhancedMultiB @Override public String[] getInfoData() { - int mPollutionReduction = 0; - for (MTEHatchMuffler tHatch : validMTEList(mMufflerHatches)) { - mPollutionReduction = Math.max(tHatch.calculatePollutionReduction(100), mPollutionReduction); - } - long storedEnergy = 0; long maxEnergy = 0; for (MTEHatch tHatch : getExoticAndNormalEnergyHatchList()) { @@ -203,7 +197,7 @@ public abstract class MTEExtendedPowerMultiBlockBase<T extends MTEEnhancedMultiB + " %", /* 6 */ StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": " + EnumChatFormatting.GREEN - + mPollutionReduction + + getAveragePollutionPercentage() + EnumChatFormatting.RESET + " %" }; } |