From eb863d60e82b5541a9f42d2608f61cb97ada209b Mon Sep 17 00:00:00 2001 From: HiZe Date: Tue, 12 Mar 2024 19:48:07 +0100 Subject: Fix: Skill progress tab pattern (#1148) --- src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main') 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(?\\w+) (?\\d+): §r§3(?.+)%\$" + "(?\\w+) (?\\d+): §r§a(?.+)%$" ) 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 { -- cgit