aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorchochem <40274384+chochem@users.noreply.github.com>2023-06-07 19:33:59 +0100
committerGitHub <noreply@github.com>2023-06-07 20:33:59 +0200
commit91e25e7be6cd9d00e0ceaac9af7238f4821d9280 (patch)
treeabed19188b37416cf69fa220b9f6ef68a5bf7c2f /src
parent35dc19047198555cce6e573b8c098b8dd5ffe13c (diff)
downloadGT5-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')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java13
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