diff options
author | chochem <40274384+chochem@users.noreply.github.com> | 2023-06-07 19:33:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 20:33:59 +0200 |
commit | 91e25e7be6cd9d00e0ceaac9af7238f4821d9280 (patch) | |
tree | abed19188b37416cf69fa220b9f6ef68a5bf7c2f /src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations | |
parent | 35dc19047198555cce6e573b8c098b8dd5ffe13c (diff) | |
download | GT5-Unofficial-91e25e7be6cd9d00e0ceaac9af7238f4821d9280.tar.gz GT5-Unofficial-91e25e7be6cd9d00e0ceaac9af7238f4821d9280.tar.bz2 GT5-Unofficial-91e25e7be6cd9d00e0ceaac9af7238f4821d9280.zip |
Fix gt++ pollution tooltips (#662)
* fix gt++ pollution tooltips
* do it without reflection
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java index fb17eab7de..9a2d6e7d81 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java @@ -1601,17 +1601,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex /** * Pollution Management */ - private static Method calculatePollutionReduction = null; - - public int calculatePollutionReductionForHatch(GT_MetaTileEntity_Hatch_Muffler i, int g) { - if (calculatePollutionReduction != null) { - try { - return (int) calculatePollutionReduction.invoke(i, g); - } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { - - } - } - return 0; + public int calculatePollutionReductionForHatch(GT_MetaTileEntity_Hatch_Muffler hatch, int poll) { + return hatch.calculatePollutionReduction(poll); } @Override |