Skip to content

Commit 06a0261

Browse files
committed
fix render glitch in ponder
1 parent 08a848a commit 06a0261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/simibubi/create/content/kinetics/chainConveyor/ChainConveyorRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected void renderSafe(ChainConveyorBlockEntity be, float partialTicks, PoseS
6060
frustum = getFrustumIntersection();
6161
camPos = Minecraft.getInstance().gameRenderer.getMainCamera().getPosition();
6262
}
63-
boolean renderCentre = frustum != null && frustum.testAab(pos.getX() - 2 - (float) camPos.x, pos.getY() - (float) camPos.y, pos.getZ() - 2 - (float) camPos.z, pos.getX() + 2 - (float) camPos.x, pos.getY() + 1 - (float) camPos.y, pos.getZ() + 2 - (float) camPos.z);
63+
boolean renderCentre = frustum == null || frustum.testAab(pos.getX() - 2 - (float) camPos.x, pos.getY() - (float) camPos.y, pos.getZ() - 2 - (float) camPos.z, pos.getX() + 2 - (float) camPos.x, pos.getY() + 1 - (float) camPos.y, pos.getZ() + 2 - (float) camPos.z);
6464
renderChains(be, ms, buffer, light, overlay, frustum, camPos, renderCentre);
6565

6666
if (VisualizationManager.supportsVisualization(be.getLevel()))

0 commit comments

Comments
 (0)