Skip to content

Instantly share code, notes, and snippets.

@CraftedCart
Last active November 14, 2015 19:34
Show Gist options
  • Save CraftedCart/f677d20bf1658ee23704 to your computer and use it in GitHub Desktop.
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
@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