From 6ee4de6177ec779ddf12f318c2b0d3e2540a6366 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 16:07:27 +0100 Subject: Fixed new leaderboard position for passing #1000 --- .../at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') 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 } -- cgit