aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-10 21:41:03 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-10 21:41:03 +0200
commitd347b3fdd33bd72033329e92353561e5c60d2657 (patch)
tree1e5f82591d87dc7afd9a7fd24cf975767d9a7a3d /src
parent07089fac78ee6de50052382892a842e6e5b84269 (diff)
downloadskyhanni-d347b3fdd33bd72033329e92353561e5c60d2657.tar.gz
skyhanni-d347b3fdd33bd72033329e92353561e5c60d2657.tar.bz2
skyhanni-d347b3fdd33bd72033329e92353561e5c60d2657.zip
Fixed farming weight overtake message sent at the wrong time
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt
index 1440449ee..d0be7c7a5 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt
@@ -161,8 +161,9 @@ class EliteFarmingWeight {
private fun getETA(): String {
if (weight < 0) return ""
- val nextName = if (leaderboardPosition == -1) "#1000" else nextPlayerName
+ if (nextPlayerName.isEmpty()) return ""
+ val nextName = if (leaderboardPosition == -1) "#1000" else nextPlayerName
val totalWeight = (localWeight + weight)
val weightUntilOvertake = nextPlayerWeight - totalWeight
if (weightUntilOvertake < 0) {