aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-29 11:19:09 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-29 11:19:09 +0200
commitb3533ebdae283e2525f660d8ec4e3214a27cab0b (patch)
tree4f501b65f579426e2618d617b78f940e80fe2b59 /src/main/java/at/hannibal2
parentebbfcdb60a86fcce451a79e1da4b35a999b5711f (diff)
downloadskyhanni-b3533ebdae283e2525f660d8ec4e3214a27cab0b.tar.gz
skyhanni-b3533ebdae283e2525f660d8ec4e3214a27cab0b.tar.bz2
skyhanni-b3533ebdae283e2525f660d8ec4e3214a27cab0b.zip
Maybe fixed wrong 'you passed #1000 in farming weight' message send on garden join
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt3
1 files changed, 2 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 904f74bbe..b33c0150e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt
@@ -160,7 +160,8 @@ class EliteFarmingWeight {
val weightUntilOvertake = nextPlayerWeight - totalWeight
if (weightUntilOvertake < 0) {
if (!hasPassedNext) {
- if (weightPerSecond != -1.0) {
+ if (weightPerSecond > 0) {
+ LorenzUtils.debug("weightPerSecond: '$weightPerSecond'")
LorenzUtils.chat("§e[SkyHanni] You passed §b$nextName §ein the Farming Weight Leaderboard!")
}
if (leaderboardPosition == -1) {