From 3f751c8d46479c7f7c07840eca0e28b43e7d3a23 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:05:33 +0200 Subject: [PATCH] Fix: Custom Scoreboard Carnival (#2631) --- .../skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt index ce4b5a4fafa9..802cc073bd71 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt @@ -534,7 +534,8 @@ private fun getCarnivalLines() = listOf( getSbLines().firstOrNull { pattern.matches(it) } } -private fun getCarnivalShowWhen(): Boolean = SbPattern.carnivalPattern.anyMatches(getSbLines()) +private fun getCarnivalShowWhen() = + listOf(SbPattern.carnivalPattern, SbPattern.carnivalTokensPattern, SbPattern.carnivalTasksPattern).anyMatches(getSbLines()) private fun getRiftLines() = getSbLines().filter { line -> RiftBloodEffigies.heartsPattern.matches(line) ||