diff options
Diffstat (limited to 'src/main/kotlin/features/world/FairySouls.kt')
| -rw-r--r-- | src/main/kotlin/features/world/FairySouls.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/features/world/FairySouls.kt b/src/main/kotlin/features/world/FairySouls.kt index 9191a80..b073726 100644 --- a/src/main/kotlin/features/world/FairySouls.kt +++ b/src/main/kotlin/features/world/FairySouls.kt @@ -67,12 +67,12 @@ object FairySouls { fun findNearestClickableSoul(): Coordinate? { val player = MC.player ?: return null - val pos = player.pos + val pos = player.position val location = SBData.skyblockLocation ?: return null val soulLocations: List<Coordinate> = RepoManager.neuRepo.constants.fairySouls.soulLocations[location.locrawMode] ?: return null return soulLocations - .map { it to it.blockPos.getSquaredDistance(pos) } + .map { it to it.blockPos.distToCenterSqr(pos) } .filter { it.second < playerReachSquared } .minByOrNull { it.second } ?.first |
