diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-03-17 18:47:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 18:47:14 +0100 |
commit | 05cf57e9c4beec997438988fe86a15628a6d5ff0 (patch) | |
tree | f99f183ebb42ec70173ccc12f398535192bc0fd4 | |
parent | 8fc46b4e838dcf0fda4b7a029ec147edbc2af4d3 (diff) | |
download | skyhanni-05cf57e9c4beec997438988fe86a15628a6d5ff0.tar.gz skyhanni-05cf57e9c4beec997438988fe86a15628a6d5ff0.tar.bz2 skyhanni-05cf57e9c4beec997438988fe86a15628a6d5ff0.zip |
Fix: Fixed two unknown line problems (#1205)
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt | 5 |
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 |