aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt4
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 {