aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-03-07 01:21:33 +0100
committerGitHub <noreply@github.com>2024-03-07 01:21:33 +0100
commitf1af1a44c66733cca564b5fbad32fa4c9de01bd4 (patch)
tree2c22280af285748966eb514f678a32c1edbd09e2 /src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
parent84589e27e919acd6f8972bb053e209b175950cfc (diff)
downloadskyhanni-f1af1a44c66733cca564b5fbad32fa4c9de01bd4.tar.gz
skyhanni-f1af1a44c66733cca564b5fbad32fa4c9de01bd4.tar.bz2
skyhanni-f1af1a44c66733cca564b5fbad32fa4c9de01bd4.zip
Internal Change: Code cleanup in FishingAPI (#1056)
Co-authored-by: Obsidianninja11 <obsidianninja11@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
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, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
index 819f2c7f6..29cc1d569 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt
@@ -19,7 +19,7 @@ object LocationUtils {
fun LorenzVec.distanceToPlayerSqIgnoreY() = distanceSqIgnoreY(playerLocation())
- fun Entity.distanceToPlayer() = getLorenzVec().distance(playerLocation())
+ fun Entity.distanceToPlayer() = getLorenzVec().distanceToPlayer()
fun Entity.distanceTo(location: LorenzVec) = getLorenzVec().distance(location)