From 7d082af004f444a20e42716e6bca5b0e61c99c63 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 19 Aug 2014 09:26:38 -0500 Subject: [PATCH] Remove rendering of other glass blocks' sides. http://puu.sh/aZ2zd/7bbe5951ee.jpg --- src/main/java/forestry/core/gadgets/BlockStainedGlass.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/forestry/core/gadgets/BlockStainedGlass.java b/src/main/java/forestry/core/gadgets/BlockStainedGlass.java index db4ef343a..b35ad03d1 100755 --- a/src/main/java/forestry/core/gadgets/BlockStainedGlass.java +++ b/src/main/java/forestry/core/gadgets/BlockStainedGlass.java @@ -67,6 +67,13 @@ public class BlockStainedGlass extends BlockBreakable { public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) { return this.getIcon(side, world.getBlockMetadata(x, y, z)); } + + @Override + @SideOnly(Side.CLIENT) + public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int meta) { + Block block = world.getBlock(x, y, z); + return block == this ? false : super.shouldSideBeRendered(world, x, y, z, meta); + } @Override public int damageDropped(int meta) {