mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-10-26 06:14:16 +00:00
Merge pull request #131 from oitsjustjose/master
Remove rendering of other glass blocks' sides.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user