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/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) {