aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-03-17 18:47:14 +0100
committerGitHub <noreply@github.com>2024-03-17 18:47:14 +0100
commit05cf57e9c4beec997438988fe86a15628a6d5ff0 (patch)
treef99f183ebb42ec70173ccc12f398535192bc0fd4 /src/main/java/at/hannibal2/skyhanni
parent8fc46b4e838dcf0fda4b7a029ec147edbc2af4d3 (diff)
downloadskyhanni-05cf57e9c4beec997438988fe86a15628a6d5ff0.tar.gz
skyhanni-05cf57e9c4beec997438988fe86a15628a6d5ff0.tar.bz2
skyhanni-05cf57e9c4beec997438988fe86a15628a6d5ff0.zip
Fix: Fixed two unknown line problems (#1205)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
index e5b1a9686..b515fe37b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
@@ -248,7 +248,7 @@ object ScoreboardPattern {
)
val reformingPattern by combatSb.pattern(
"magmareforming",
- "^§cThe boss is reforming!$"
+ "^§cThe boss is (?:re)?forming!$"
)
val bossHealthPattern by combatSb.pattern(
"magmabosshealth",
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt
index e8b497da5..cf2f93752 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt
@@ -14,7 +14,10 @@ object UnknownLinesHandler {
fun handleUnknownLines() {
val sidebarLines = ScoreboardData.sidebarLinesFormatted
- unknownLines = sidebarLines.toMutableList().map { it.removeResets() }.filter { it.isNotBlank() }
+ unknownLines = sidebarLines
+ .map { it.removeResets() }
+ .filter { it.isNotBlank() }
+ .filter { it.trim().length > 3 }
/*
* remove with pattern