Last active
November 14, 2015 19:34
-
-
Save CraftedCart/f677d20bf1658ee23704 to your computer and use it in GitHub Desktop.
MC Forge: Don't render the sides of adjacent blocks when using transparency in a texture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SideOnly(Side.CLIENT) | |
public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side) { | |
Block block = world.getBlock(x, y, z); | |
if (block == this) { | |
return false; | |
} | |
return super.shouldSideBeRendered(world, x, y, z, side); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment