diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 16:07:27 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 16:07:27 +0100 |
commit | 6ee4de6177ec779ddf12f318c2b0d3e2540a6366 (patch) | |
tree | c99f6ca861ef7488f8d1d247daf7ce30255c725d /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 5ec733e35b7602e2f9f530c4c6207fe3858e2793 (diff) | |
download | skyhanni-6ee4de6177ec779ddf12f318c2b0d3e2540a6366.tar.gz skyhanni-6ee4de6177ec779ddf12f318c2b0d3e2540a6366.tar.bz2 skyhanni-6ee4de6177ec779ddf12f318c2b0d3e2540a6366.zip |
Fixed new leaderboard position for passing #1000
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt index d8bc15e16..faf6d0a17 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt @@ -158,7 +158,11 @@ class EliteFarmingWeight { val weightUntilOvertake = nextPlayerWeight - totalWeight if (weightUntilOvertake < 0) { if (!hasPassedNext) { - leaderboardPosition-- + if (leaderboardPosition == -1) { + leaderboardPosition = 1000 + } else { + leaderboardPosition-- + } nextPlayerWeight = 0.0 hasPassedNext = true } |