diff options
author | Prometheus0000 <prometheus0000000@gmail.com> | 2021-03-22 15:13:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 15:13:12 -0400 |
commit | d7467b6d1a47190bf36eaa01758f9136a417cc1a (patch) | |
tree | ddd98acd6c075bbdabdf12c9222fd0141447a1ea /src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | |
parent | 64ecbdcfc179ffbe7a00500081abee4959c690af (diff) | |
parent | b676922c34d52402751bbdf18692c0852bb894be (diff) | |
download | GT5-Unofficial-d7467b6d1a47190bf36eaa01758f9136a417cc1a.tar.gz GT5-Unofficial-d7467b6d1a47190bf36eaa01758f9136a417cc1a.tar.bz2 GT5-Unofficial-d7467b6d1a47190bf36eaa01758f9136a417cc1a.zip |
Merge pull request #27 from GTNewHorizons/experimental
update
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java index 6025e7eb13..26fee68f2b 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java @@ -784,6 +784,20 @@ public class BaseMetaPipeEntity extends BaseTileEntity implements IGregTechTileE } @Override + public ITexture[] getTextureCovered(byte aSide) { + ITexture coverTexture = getCoverTexture(aSide); + ITexture[] textureUncovered = getTextureUncovered(aSide); + ITexture[] textureCovered; + if (coverTexture != null) { + textureCovered = Arrays.copyOf(textureUncovered, textureUncovered.length + 1); + textureCovered[textureUncovered.length] = coverTexture; + return textureCovered; + } else { + return textureUncovered; + } + } + + @Override public ITexture[] getTextureUncovered(byte aSide) { if ((mConnections & 64) != 0) return Textures.BlockIcons.FRESHFOAM; if ((mConnections & -128) != 0) return Textures.BlockIcons.HARDENEDFOAMS[mColor]; |