mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Improve side rendering
This commit is contained in:
1 parent
f0b2da6e80
commit
b1891a178b
3 files changed
+160
-15
No files matched your search
@@ -46,6 +46,17 @@ public class GlassPaneConnectedMeta extends GlassPaneConnected {
|
||||
return block == this && (meta == blockAccess.getBlockMetadata(x, y, z) || ignoreMetaForConnectedGlass);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getPaneConnectedTexture(IBlockAccess blockAccess, int x, int y, int z, boolean openUp,
|
||||
boolean openDown, boolean openLeft, boolean openRight) {
|
||||
int meta = blockAccess.getBlockMetadata(x, y, z);
|
||||
IIcon[] icons = meta < this.icons.length ? this.icons[meta] : this.icons[0];
|
||||
if (PHConstruct.connectedTexturesMode == 0) {
|
||||
return icons[0];
|
||||
}
|
||||
return getConnectedTexture(icons, openUp, openDown, openLeft, openRight);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
|
||||
Reference in new issue
Block a user