Skip to content

Commit 77dffaa

Browse files
committed
Fix tallGrass culling
1 parent 4fa98b8 commit 77dffaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/ca/fxco/moreculling/utils/CullingUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public static boolean shouldDrawSideCulling(BlockState thisState, BlockState sid
5353
return false;
5454
}
5555

56-
if ((!sideState.getRenderShape().equals(RenderShape.INVISIBLE) &&
57-
((MoreStateCulling) sideState).moreculling$shouldAttemptToCullAgainst(null, world, sidePos))) {
56+
if (!sideState.getRenderShape().equals(RenderShape.INVISIBLE)
57+
&& (((MoreStateCulling) sideState).moreculling$shouldAttemptToCull(side.getOpposite(), world, sidePos) && ((MoreStateCulling) sideState).moreculling$shouldAttemptToCullAgainst(null, world, sidePos))) {
5858
return shouldDrawFace(world, thisState, sideState, thisPos, sidePos, side);
5959
}
6060
}

0 commit comments

Comments
 (0)