Skip to content

Commit

Permalink
fixed events patterns not getting added (oops)
Browse files Browse the repository at this point in the history
Signed-off-by: J10a1n15 <[email protected]>
  • Loading branch information
j10a1n15 committed Jan 7, 2025
1 parent 6b02c60 commit 0ac1946
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ object CustomScoreboard {
currentIslandEntries = config.scoreboardEntries.get().map { it.element }.filter { it.showIsland() }
currentIslandEvents = eventsConfig.eventEntries.get().map { it.event }.filter { it.showIsland() }

activePatterns = ScoreboardConfigElement.getElements()
.filter(ScoreboardElement::showIsland)
.flatMap(ScoreboardElement::elementPatterns)
activePatterns = (ScoreboardConfigElement.getElements() + ScoreboardConfigEventElement.getEvents())
.filter { it.showIsland() }
.flatMap { it.elementPatterns }
.distinct()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ enum class ScoreboardConfigEventElement(val event: ScoreboardEvent) {
override fun toString() = event.configLine

companion object {
fun getEvents() = entries.map { it.event }

@JvmField
val defaultOption = listOf(
VOTING,
Expand Down

0 comments on commit 0ac1946

Please sign in to comment.