Skip to content

Commit

Permalink
Merge branch 'refs/heads/backend/scoreboard-refactor' into feature/cu…
Browse files Browse the repository at this point in the history
…stom-scoreboard-custom-lines
  • Loading branch information
j10a1n15 committed Sep 28, 2024
2 parents 1eb39f9 + b08d36f commit 2a79220
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private class UndetectedScoreboardLines(message: String) : Exception(message)
object UnknownLinesHandler {

internal lateinit var remoteOnlyPatterns: Array<Pattern>
private var remoteOnlyPatternsAdded = false

fun handleUnknownLines() {
with(ScoreboardPattern) {
Expand Down Expand Up @@ -180,8 +181,6 @@ object UnknownLinesHandler {
carnivalKillsPattern,
)

var unknownLines = sidebarLines.map { it.removeResets() }.filter { it.isNotBlank() }.filter { it.trim().length > 3 }

if (::remoteOnlyPatterns.isInitialized && !remoteOnlyPatternsAdded) {
patternsToExclude.addAll(remoteOnlyPatterns)
remoteOnlyPatternsAdded = true
Expand Down

0 comments on commit 2a79220

Please sign in to comment.