aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
index 4b478c28f..3ba3ad59f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
@@ -385,7 +385,9 @@ class FarmingWeightDisplay {
private fun checkOffScreenLeaderboardChanges() {
val profileSpecific = ProfileStorageData.profileSpecific ?: return
val oldPosition = profileSpecific.garden.farmingWeight.lastFarmingWeightLeaderboard
- if (oldPosition == -1) return
+
+ if (oldPosition <= 0) return
+ if (leaderboardPosition <= 0) return
val diff = leaderboardPosition - oldPosition
if (diff == 0) return