Skip to content

Commit 25fc052

Browse files
committed
Fix tallgrass culling
1 parent e11ad00 commit 25fc052

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ yarn_mappings=1.20.1+build.1
88
loader_version=0.16.0
99

1010
# Mod Properties
11-
mod_version=0.24.1
11+
mod_version=0.24.2
1212
maven_group=ca.fxco
1313
archives_base_name=moreculling
1414

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ public static boolean shouldDrawSideCulling(BlockState thisState,
5151
}
5252

5353
if (!sideState.getRenderType().equals(BlockRenderType.INVISIBLE) &&
54-
((MoreStateCulling) sideState).canCull() &&
55-
((MoreStateCulling) sideState).shouldAttemptToCullAgainst(side.getOpposite())) {
56-
return shouldDrawFace(world, thisState, sideState, thisPos, sidePos, side);
54+
((MoreStateCulling) sideState).canCull()) {
55+
Direction opposite = side.getOpposite();
56+
if (((MoreStateCulling) sideState).shouldAttemptToCull(opposite) && ((MoreStateCulling) sideState).shouldAttemptToCullAgainst(side.getOpposite())) {
57+
return shouldDrawFace(world, thisState, sideState, thisPos, sidePos, side);
58+
}
5759
}
5860
}
5961
return true;

0 commit comments

Comments
 (0)