Skip to content

Commit

Permalink
#352 - on server always return false for block rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Dec 21, 2017
1 parent 3bf6fda commit 5b8f6ed
Showing 1 changed file with 12 additions and 1 deletion.
Expand Up @@ -798,9 +798,20 @@ public boolean isSideSolid(
return ( sideState & 1 << side.ordinal() ) != 0;
}

@SideOnly( Side.CLIENT )
public boolean isSideOpaque(
final EnumFacing side )
{
if ( this.getWorld().isRemote )
{
return isInnerSideOpaque( side );
}

return false;
}

@SideOnly( Side.CLIENT )
public boolean isInnerSideOpaque(
final EnumFacing side )
{
final VoxelNeighborRenderTracker vns = state != null ? state.getValue( BlockChiseled.UProperty_VoxelNeighborState ) : null;
if ( vns != null && vns.isDynamic() )
Expand Down

0 comments on commit 5b8f6ed

Please sign in to comment.