aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-10-01 12:05:33 +0200
committerGitHub <noreply@github.com>2024-10-01 12:05:33 +0200
commit3f751c8d46479c7f7c07840eca0e28b43e7d3a23 (patch)
tree0dbe50ba98b6d60635c9ce3e69418e2536b4d783 /src
parentf181902cce81b99c5b940e1cb5c116bdff18b159 (diff)
downloadskyhanni-3f751c8d46479c7f7c07840eca0e28b43e7d3a23.tar.gz
skyhanni-3f751c8d46479c7f7c07840eca0e28b43e7d3a23.tar.bz2
skyhanni-3f751c8d46479c7f7c07840eca0e28b43e7d3a23.zip
Fix: Custom Scoreboard Carnival (#2631)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt3
1 files changed, 2 insertions, 1 deletions
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 ce4b5a4fa..802cc073b 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) ||