Skip to content

Commit 6222f22

Browse files
committed
Fixed state culling
1 parent 7885ed8 commit 6222f22

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ private static boolean shouldDrawFace(BlockGetter world, BlockState thisState, B
6363
Direction opposite = side.getOpposite();
6464
VoxelShape thisShape = thisState.getFaceOcclusionShape(side);
6565
if (thisShape.isEmpty()) //vanilla 1.21.2 will just return empty if block cant occlude instead of its shape
66-
thisState.getBlock().getOcclusionShape(thisState).getFaceShape(side);
66+
thisShape = thisState.getBlock().getOcclusionShape(thisState).getFaceShape(side);
6767
VoxelShape sideShape = sideState.getFaceOcclusionShape(opposite);
6868
if (sideShape.isEmpty())
69-
sideState.getBlock().getOcclusionShape(sideState).getFaceShape(opposite);
69+
sideShape = sideState.getBlock().getOcclusionShape(sideState).getFaceShape(opposite);
7070

7171
Block.ShapePairKey shapePairKey = new Block.ShapePairKey(
7272
thisShape,

0 commit comments

Comments
 (0)