Skip to content

Commit

Permalink
Call can cull once
Browse files Browse the repository at this point in the history
  • Loading branch information
1foxy2 committed Nov 11, 2024
1 parent 7ad0313 commit 3c5be89
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ public static boolean shouldDrawSideCulling(BlockState thisState, BlockState sid
return shouldDrawFace.get();
}
}
if (sideState.canOcclude() && ((MoreStateCulling) sideState).moreculling$canCull() ||
(!sideState.getRenderShape().equals(RenderShape.INVISIBLE) &&
((MoreStateCulling) sideState).moreculling$canCull() &&
if (((MoreStateCulling) sideState).moreculling$canCull() &&
(sideState.canOcclude() || (!sideState.getRenderShape().equals(RenderShape.INVISIBLE) &&
((MoreStateCulling) thisState).moreculling$shouldAttemptToCull(side) &&
((MoreStateCulling) sideState).moreculling$shouldAttemptToCull(side.getOpposite()))) {
((MoreStateCulling) sideState).moreculling$shouldAttemptToCull(side.getOpposite())))) {
return shouldDrawFace(world, thisState, sideState, thisPos, sidePos, side);
}
return true;
Expand Down

0 comments on commit 3c5be89

Please sign in to comment.