Don't double check infinite bounds (#1321)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-01-25 21:13:14 -08:00
1 parent b7015bf10e
commit 5ef6cb11c0
1 file changed
+1 -1
@@ -233,7 +233,7 @@ public class CeleritasWorldRenderer extends SimpleWorldRenderer<WorldClient, Ang
if (!teCache.angelica$isInfiniteExtent()) {
final AxisAlignedBB aabb = teCache.angelica$getCachedRenderBoundingBox();
if (!TileEntityRenderBoundsRegistry.isInfiniteExtentsBox(aabb) && !this.currentViewport.isBoxVisible(aabb.minX, aabb.minY, aabb.minZ, aabb.maxX, aabb.maxY, aabb.maxZ)) {
if (aabb != null && !this.currentViewport.isBoxVisible(aabb.minX, aabb.minY, aabb.minZ, aabb.maxX, aabb.maxY, aabb.maxZ)) {
return;
}
}