diff --git a/src/main/java/codechicken/multipart/trait/TPartialOcclusionTile.java b/src/main/java/codechicken/multipart/trait/TPartialOcclusionTile.java index 15c72cc..cfbe661 100644 --- a/src/main/java/codechicken/multipart/trait/TPartialOcclusionTile.java +++ b/src/main/java/codechicken/multipart/trait/TPartialOcclusionTile.java @@ -46,7 +46,7 @@ public void markShapeChange() { public boolean occlusionTest(Iterable 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);