From d130af8e45d26b2403781babad93b65092e754fc Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 16 Jun 2023 12:28:45 +0200 Subject: Fixed bug with reading non god-potion effects from tab list --- .../java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt index 723a3d00e..1a20293de 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt @@ -149,7 +149,7 @@ class NonGodPotEffectDisplay { for (effect in NonGodPotEffect.values()) { if (name == effect.displayName) continue for (line in stack.getLore()) { - if (line.contains("Remaining")) { + if (line.contains("Remaining") && line != "§7Time Remaining: §aCompleted!") { val duration = try { TimeUtils.getMillis(line.split("§f")[1]) } catch (e: IndexOutOfBoundsException) { -- cgit