Improve side rendering

This commit is contained in:
Fabian Maurer committed 2026-06-04 01:33:12 +02:00
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) {