aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuna <me@alexia.lol>2024-04-10 20:11:09 +0200
committerGitHub <noreply@github.com>2024-04-10 20:11:09 +0200
commit0db07a92e97e1bf6b9831a35df5e94a2d51ee591 (patch)
treec7ccb69045ff0ebf5d87086b256f8cd743e38c23
parent2ee1322534fc6bb31c347aba2755efbe0039daad (diff)
downloadskyhanni-0db07a92e97e1bf6b9831a35df5e94a2d51ee591.tar.gz
skyhanni-0db07a92e97e1bf6b9831a35df5e94a2d51ee591.tar.bz2
skyhanni-0db07a92e97e1bf6b9831a35df5e94a2d51ee591.zip
Fix: Skill tab list pattern sometimes not matching (#1419)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
index 02d0e9f89..55384443f 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
@@ -57,11 +57,11 @@ object SkillAPI {
)
private val skillTabPattern by patternGroup.pattern(
"skill.tab",
- " (?<type>\\w+) (?<level>\\d+): §r§a(?<progress>.+)%$"
+ "(?:§e§lSkills: §r§a)?\\s*(?<type>\\w+) (?<level>\\d+): §r§.(?<progress>.+)%$"
)
private val maxSkillTabPattern by patternGroup.pattern(
"skill.tab.max",
- "^§e§lSkills: §r§a(?<type>\\w+) (?<level>\\d+): §r§c§lMAX\$"
+ "(?:§e§lSkills: §r§a)?\\s*(?<type>\\w+) (?<level>\\d+): §r§c§lMAX\$"
)
var skillXPInfoMap = mutableMapOf<SkillType, SkillXPInfo>()