Merge pull request #131 from oitsjustjose/master

Remove rendering of other glass blocks' sides.
This commit is contained in:
CovertJaguar committed 2014-08-19 18:22:46 -07:00
commit cfba14ed1d
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) {