diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-16 12:28:45 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-16 12:28:45 +0200 |
commit | d130af8e45d26b2403781babad93b65092e754fc (patch) | |
tree | c6c060384dac882921f54e6d0d400d10e999246c /src/main | |
parent | 8d2bb2c80edbfe687b4e020330f882b3a364d088 (diff) | |
download | skyhanni-d130af8e45d26b2403781babad93b65092e754fc.tar.gz skyhanni-d130af8e45d26b2403781babad93b65092e754fc.tar.bz2 skyhanni-d130af8e45d26b2403781babad93b65092e754fc.zip |
Fixed bug with reading non god-potion effects from tab list
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |