Skip to content

Commit

Permalink
only render the text labels closer than 24 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdoru committed Nov 27, 2024
1 parent 02eb193 commit c98ab41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ object VisualiserOverlayRender extends WorldOverlayRenderer {
val linkZ = (link.node1.z + link.node2.z) / 2d + 0.5d
val distSq =
(viewX - linkX) * (viewX - linkX) + (viewY - linkY) * (viewY - linkY) + (viewZ - linkZ) * (viewZ - linkZ)
if (distSq < 256d) { // 16 blocks
if (distSq < 576d) { // 24 blocks
OverlayRenderHandler.renderFloatingText(
link.channels.toString,
linkX,
Expand Down

0 comments on commit c98ab41

Please sign in to comment.