aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-17 14:30:47 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-17 14:30:47 +0200
commitdf6acc5bd8bfdf70180cf746a6649fd349374916 (patch)
treecda554b5fdf2599c8bf10416f316a63514384d3f /src
parent45428b06e4cc99255a358f9e9dd34515670c70f5 (diff)
downloadskyhanni-df6acc5bd8bfdf70180cf746a6649fd349374916.tar.gz
skyhanni-df6acc5bd8bfdf70180cf746a6649fd349374916.tar.bz2
skyhanni-df6acc5bd8bfdf70180cf746a6649fd349374916.zip
additional fix for non god pot remaining tab list reading logic
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt4
1 files changed, 3 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 1a20293de..f7fdc55cc 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,9 @@ class NonGodPotEffectDisplay {
for (effect in NonGodPotEffect.values()) {
if (name == effect.displayName) continue
for (line in stack.getLore()) {
- if (line.contains("Remaining") && line != "§7Time Remaining: §aCompleted!") {
+ if (line.contains("Remaining") &&
+ line != "§7Time Remaining: §aCompleted!" &&
+ !line.contains("Remaining Uses")) {
val duration = try {
TimeUtils.getMillis(line.split("§f")[1])
} catch (e: IndexOutOfBoundsException) {