aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 11:06:16 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 11:06:16 +0200
commitaf192ed7327735f5ac590f65d30a001d68815e06 (patch)
treef8ae518ee552d86c634eccb3d28f31c9ee01b4c7 /src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
parentab0e2df6feae63caec66143a5328ad1c95adff82 (diff)
downloadskyhanni-af192ed7327735f5ac590f65d30a001d68815e06.tar.gz
skyhanni-af192ed7327735f5ac590f65d30a001d68815e06.tar.bz2
skyhanni-af192ed7327735f5ac590f65d30a001d68815e06.zip
Show the names of the 4 areas while in the center of crystal hollows.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
index 1c1bd5b1b..9fcba58f5 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
@@ -14,6 +14,8 @@ object LocationUtils {
fun LorenzVec.distanceToPlayer() = distance(playerLocation())
+ fun LorenzVec.distanceToPlayerIgnoreYSq() = distanceIgnoreYSq(playerLocation())
+
fun Entity.distanceToPlayer() = getLorenzVec().distance(playerLocation())
fun Entity.distanceTo(location: LorenzVec) = getLorenzVec().distance(location)