Skip to content

Commit

Permalink
Fix terrain not rendering when outside the world height
Browse files Browse the repository at this point in the history
Yet another logic error. Pesky.
  • Loading branch information
jellysquid3 committed Jan 28, 2024
1 parent 8fb6539 commit e151dc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private void initOutsideWorldHeight(WriteQueue<RenderSection> queue,
private void tryVisitNode(WriteQueue<RenderSection> queue, int x, int y, int z, int direction, int frame, Viewport viewport) {
RenderSection section = this.getRenderSection(x, y, z);

if (section == null || isWithinFrustum(viewport, section)) {
if (section == null || !isWithinFrustum(viewport, section)) {
return;
}

Expand Down

0 comments on commit e151dc8

Please sign in to comment.