From 23df0224fcb9e053578b7e4e2e86fad8b10c7a43 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Sat, 15 Jun 2024 12:04:55 +0200 Subject: [PATCH 1/2] fix Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 7cb382d42cf3..89489518ccf0 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -209,7 +209,7 @@ object RenderUtils { z: Double, rgb: Int, alphaMultiplier: Float, - partialTicks: Float + partialTicks: Float, ) { val height = 300 val bottomOffset = 0 @@ -1009,6 +1009,7 @@ object RenderUtils { smallestDistanceVew: Double = 5.0, ignoreBlocks: Boolean = true, ignoreY: Boolean = false, + maxDistance: Int? = null, ) { val thePlayer = Minecraft.getMinecraft().thePlayer val x = location.x @@ -1030,7 +1031,9 @@ object RenderUtils { distToPlayer = distToPlayer.coerceAtLeast(smallestDistanceVew) if (distToPlayer < hideTooCloseAt) return - if (ignoreBlocks && distToPlayer > 80) return + maxDistance?.let { + if (ignoreBlocks && distToPlayer > it) return + } val distRender = distToPlayer.coerceAtMost(50.0) From 574bc44127a03dabc30749c21332577a57d3be73 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Sat, 15 Jun 2024 12:10:11 +0200 Subject: [PATCH 2/2] added grapheditor option Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/test/GraphEditor.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/at/hannibal2/skyhanni/test/GraphEditor.kt b/src/main/java/at/hannibal2/skyhanni/test/GraphEditor.kt index 318486440aaf..0e4f36d321bf 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/GraphEditor.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/GraphEditor.kt @@ -152,6 +152,7 @@ object GraphEditor { smallestDistanceVew = 12.0, ignoreY = true, yOff = -15f, + maxDistance = 80, ) }