Skip to content

Commit

Permalink
Fixed dont_cull option not working on solid blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
1foxy2 committed Nov 10, 2024
1 parent 5359b6d commit 7ad0313
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public static boolean shouldDrawSideCulling(BlockState thisState, BlockState sid
return shouldDrawFace.get();
}
}
if (sideState.canOcclude() || (!sideState.getRenderShape().equals(RenderShape.INVISIBLE) &&
if (sideState.canOcclude() && ((MoreStateCulling) sideState).moreculling$canCull() ||
(!sideState.getRenderShape().equals(RenderShape.INVISIBLE) &&
((MoreStateCulling) sideState).moreculling$canCull() &&
((MoreStateCulling) thisState).moreculling$shouldAttemptToCull(side) &&
((MoreStateCulling) sideState).moreculling$shouldAttemptToCull(side.getOpposite()))) {
Expand Down

0 comments on commit 7ad0313

Please sign in to comment.