From d347b3fdd33bd72033329e92353561e5c60d2657 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 10 May 2023 21:41:03 +0200 Subject: Fixed farming weight overtake message sent at the wrong time --- .../hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit