diff options
author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-09-17 01:40:14 +0200 |
---|---|---|
committer | boubou19 <miisterunknown@gmail.com> | 2024-09-17 22:55:46 +0200 |
commit | fba2d98e733d02caef585bed6910894ed5abf375 (patch) | |
tree | b3430b85954b94fef18a36edee1c5688360cfb8b /src/main/java | |
parent | 4659a3d88d15ea5c9faa054161d5996ba6f598fd (diff) | |
download | GT5-Unofficial-fba2d98e733d02caef585bed6910894ed5abf375.tar.gz GT5-Unofficial-fba2d98e733d02caef585bed6910894ed5abf375.tar.bz2 GT5-Unofficial-fba2d98e733d02caef585bed6910894ed5abf375.zip |
remove reflection from GTPPMTECable
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GTPPMTECable.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GTPPMTECable.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GTPPMTECable.java index 9025dad232..5f6d3762f8 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GTPPMTECable.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GTPPMTECable.java @@ -12,23 +12,10 @@ import gregtech.api.interfaces.metatileentity.IMetaTileEntityCable; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.implementations.MTECable; import gregtech.api.objects.GTRenderedTexture; -import gregtech.api.util.GTUtility; public class GTPPMTECable extends MTECable implements IMetaTileEntityCable { - private static Textures.BlockIcons INSULATION_MEDIUM_PLUS; - - static { - try { - INSULATION_MEDIUM_PLUS = (Textures.BlockIcons) GTUtility - .getField(Textures.BlockIcons.class, "INSULATION_MEDIUM_PLUS") - .get(null); - } catch (IllegalAccessException | NullPointerException e) { - throw new Error(e); - } - } - - private short[] vRGB = null; + private final short[] vRGB; public GTPPMTECable(final int aID, final String aName, final String aNameRegional, final float aThickNess, final Materials aMaterial, final long aCableLossPerMeter, final long aAmperage, final long aVoltage, @@ -134,7 +121,7 @@ public class GTPPMTECable extends MTECable implements IMetaTileEntityCable { return new ITexture[] { new GTRenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB), new GTRenderedTexture( - INSULATION_MEDIUM_PLUS, + Textures.BlockIcons.INSULATION_MEDIUM_PLUS, Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) }; if (tThickNess < 0.874F) // 0.825 x12 return new ITexture[] { |