Skip to content

Commit

Permalink
fix crash when registering TPartialOcclusionTile
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed May 3, 2024
1 parent 5132d66 commit f53122f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void markShapeChange() {
public boolean occlusionTest(Iterable<MultiPart> parts, MultiPart npart) {
if (npart instanceof PartialOcclusionPart newPart) {
VoxelShape newShape = newPart.getPartialOcclusionShape();
if (!level.isClientSide() || lastTestParts != parts || lastTestShape != newShape) {
if (!getLevel().isClientSide() || lastTestParts != parts || lastTestShape != newShape) {
lastTestParts = parts;
lastTestShape = newShape;
lastTestResult = partialOcclusionTest(parts, newPart);
Expand Down

0 comments on commit f53122f

Please sign in to comment.