Skip to content

Commit

Permalink
move condition down
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 13, 2024
1 parent 985c738 commit 1f186a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ static void render(final WorldEventContext ctx)
ctx.poseStack.translate(bounds.minX - ctx.cameraPosition.x(), bounds.minY - ctx.cameraPosition.y(), bounds.minZ - ctx.cameraPosition.z());
bounds = bounds.move(-bounds.minX, -bounds.minY, -bounds.minZ);
}
else if (bounds != null)
else
{
ctx.pushPoseCameraToPos(pos);
bounds = bounds.move(pos.multiply(-1));
if (bounds != null) bounds = bounds.move(pos.multiply(-1));
}

if (box.showThroughBlocks())
Expand Down

0 comments on commit 1f186a2

Please sign in to comment.