aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt7
1 files changed, 5 insertions, 2 deletions
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 bbae099d6..e77f670b7 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
@@ -27,7 +27,7 @@ object UnknownLinesHandler {
/**
* Remove known lines with patterns
**/
- val patternsToExclude = listOf(
+ val patternsToExclude = mutableListOf(
PurseAPI.coinsPattern,
SbPattern.motesPattern,
BitsAPI.bitsScoreboardPattern,
@@ -134,9 +134,12 @@ object UnknownLinesHandler {
SbPattern.carnivalCatchStreakPattern,
SbPattern.carnivalAccuracyPattern,
SbPattern.carnivalKillsPattern,
- *remoteOnlyPatterns,
)
+ if (::remoteOnlyPatterns.isInitialized) {
+ patternsToExclude.addAll(remoteOnlyPatterns)
+ }
+
unknownLines = unknownLines.filterNot { line ->
patternsToExclude.any { pattern -> pattern.matches(line) }
}