From c98ab411137f0cb7b3d993642cf380b8a27d4ae9 Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Thu, 28 Nov 2024 00:12:27 +0100 Subject: [PATCH] only render the text labels closer than 24 blocks --- .../ae2stuff/items/visualiser/VisualiserOverlayRender.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/net/bdew/ae2stuff/items/visualiser/VisualiserOverlayRender.scala b/src/main/scala/net/bdew/ae2stuff/items/visualiser/VisualiserOverlayRender.scala index d2dd819..858eb32 100644 --- a/src/main/scala/net/bdew/ae2stuff/items/visualiser/VisualiserOverlayRender.scala +++ b/src/main/scala/net/bdew/ae2stuff/items/visualiser/VisualiserOverlayRender.scala @@ -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,