diff options
author | HiZe <super@hize.be> | 2024-03-12 19:48:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 19:48:07 +0100 |
commit | eb863d60e82b5541a9f42d2608f61cb97ada209b (patch) | |
tree | 96c0ad5cfa751dc14e2d6b8b2b444f202bea51f5 /src/main | |
parent | 8a9c435ee120d1384c55c419e11f9cf7c3a2e1c2 (diff) | |
download | skyhanni-eb863d60e82b5541a9f42d2608f61cb97ada209b.tar.gz skyhanni-eb863d60e82b5541a9f42d2608f61cb97ada209b.tar.bz2 skyhanni-eb863d60e82b5541a9f42d2608f61cb97ada209b.zip |
Fix: Skill progress tab pattern (#1148)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt index 64d905ccb..94f6475d0 100644 --- a/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt @@ -57,7 +57,7 @@ object SkillAPI { ) private val skillTabPattern by patternGroup.pattern( "skill.tab", - "^§e§lSkills: §r§a(?<type>\\w+) (?<level>\\d+): §r§3(?<progress>.+)%\$" + "(?<type>\\w+) (?<level>\\d+): §r§a(?<progress>.+)%$" ) private val maxSkillTabPattern by patternGroup.pattern( "skill.tab.max", @@ -301,6 +301,8 @@ object SkillAPI { for (line in TabListData.getTabList()) { var levelMatcher = skillTabPattern.matcher(line) if (levelMatcher.matches()) { + val type = levelMatcher.group("type") + if (type != skillType.displayName) continue tablistLevel = levelMatcher.group("level").toInt() if (levelMatcher.group("type").lowercase() != activeSkill?.lowercaseName) tablistLevel = 0 } else { |