diff options
author | Wilhelm Schuster <dev@rot13.io> | 2023-05-11 22:35:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 22:35:55 +0200 |
commit | aefb6dce11384bc72dd340fa0fb1037988e35916 (patch) | |
tree | 3731e6732ca98f6094f2d99c27746e8410dd6613 /src/main/java/gtPlusPlus/xmod/gregtech/api | |
parent | bd28732e96aed7e2c82321179486e8c4f6446a1a (diff) | |
download | GT5-Unofficial-aefb6dce11384bc72dd340fa0fb1037988e35916.tar.gz GT5-Unofficial-aefb6dce11384bc72dd340fa0fb1037988e35916.tar.bz2 GT5-Unofficial-aefb6dce11384bc72dd340fa0fb1037988e35916.zip |
Fix GT++ material cable rendering (#626)
With the ForgeDirection migration, the signature of the getTexture() in
GT_MetaPipeEntity_Cable changed and the @Override annotation in the GT++
subclass was accidentally dropped.
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/api')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java index 7c69475f35..334eea41f1 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java @@ -90,12 +90,13 @@ public class GregtechMetaPipeEntity_Cable extends GT_MetaPipeEntity_Cable implem this.vRGB); } - public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, byte aConnections, + @Override + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, int aConnections, int aColorIndex, boolean aConnected, boolean aRedstone) { return getTextureGTNH(aBaseMetaTileEntity, side, aConnections, aColorIndex, aConnected, aRedstone); } - private ITexture[] getTextureGTNH(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection aSide, byte aConnections, + private ITexture[] getTextureGTNH(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection aSide, int aConnections, int aColorIndex, boolean aConnected, boolean aRedstone) { Materials wireMaterial = mMaterial; |