aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 19:50:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 19:50:21 +0100
commit45837469817266951b72cea054430c19c0fc7126 (patch)
tree14f695d680d1f9c968c4912df172d17f8ec7d6e0 /src/main/java
parentbfbafd913659f9d55585f02da8a0ae08dd7ca433 (diff)
downloadskyhanni-45837469817266951b72cea054430c19c0fc7126.tar.gz
skyhanni-45837469817266951b72cea054430c19c0fc7126.tar.bz2
skyhanni-45837469817266951b72cea054430c19c0fc7126.zip
Showing burrow guess point more clearly with distance
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
index 187b66249..a446dca17 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
@@ -132,8 +132,10 @@ class GriffinBurrowHelper {
val guessLocation = findBlock(it)
val distance = guessLocation.distance(playerLocation)
event.drawColor(guessLocation, LorenzColor.WHITE, distance > 10)
- if (distance < 10) {
- event.drawString(guessLocation.add(0.5, 1.5, 0.5), "§fSoopy Guess", true)
+ event.drawDynamicText(guessLocation, "Guess", 1.5)
+ if (distance > 5) {
+ val formattedDistance = LorenzUtils.formatDouble(distance)
+ event.drawDynamicText(guessLocation, "§e${formattedDistance}m", 1.3, yOff = 12f)
}
}
}