Files
MinecraftForge/patches/minecraft/net/minecraft/client/renderer/culling/Frustum.java.patch
T

12 lines
624 B
Diff

--- a/net/minecraft/client/renderer/culling/Frustum.java
+++ b/net/minecraft/client/renderer/culling/Frustum.java
@@ -83,6 +_,8 @@
}
public boolean isVisible(final AABB bb) {
+ // Forge: exit early for infinite bounds, these would otherwise fail in the intersection test at certain camera angles (GH-9321)
+ if (bb.equals(net.minecraftforge.common.extensions.IForgeBlockEntity.INFINITE_EXTENT_AABB)) return true;
int intersectionResult = this.cubeInFrustum(bb.minX, bb.minY, bb.minZ, bb.maxX, bb.maxY, bb.maxZ);
return intersectionResult == -2 || intersectionResult == -1;
}