Skip to content

Commit 55112fc

Browse files
authored
Merge pull request #28 from fxmorin/moreCullingCompat
Fix MoreCulling compat.
2 parents 29ac3b9 + bad7de9 commit 55112fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/dev/isxander/culllessleaves/mixins/morecullingcompat/LeavesBlockMixin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public boolean usesCustomShouldDrawFace(BlockState state) {
2323

2424
@Override
2525
public Optional<Boolean> customShouldDrawFace(BlockView view, BlockState thisState, BlockState sideState, BlockPos thisPos, BlockPos sidePos, Direction side) {
26-
if (sideState.isAir()) return Optional.of(true);
27-
if (CullLessLeaves.shouldCullSide(view, sidePos, side))
26+
if (CullLessLeaves.shouldCullSide(view, thisPos, side))
2827
return Optional.of(false);
2928
else
3029
return Optional.empty();

0 commit comments

Comments
 (0)