Remove rendering of other glass blocks' sides.

http://puu.sh/aZ2zd/7bbe5951ee.jpg
This commit is contained in:
oitsjustjose committed 2014-08-19 09:26:38 -05:00
1 parent 9948f60e0a
commit 7d082af004
1 file changed
+7
@@ -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) {