aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-04-07 20:11:25 +0200
committerGitHub <noreply@github.com>2024-04-07 20:11:25 +0200
commitd8b12147fd3dce520ec8cac7b0ffd8589307e077 (patch)
tree7940006297812fb30bd3f3cd0bb4963f76816575 /src/main/java/at/hannibal2
parent275932ebea0ec6496536ab63e078dc8ffd7f86ed (diff)
downloadskyhanni-d8b12147fd3dce520ec8cac7b0ffd8589307e077.tar.gz
skyhanni-d8b12147fd3dce520ec8cac7b0ffd8589307e077.tar.bz2
skyhanni-d8b12147fd3dce520ec8cac7b0ffd8589307e077.zip
Fix: Fixed Objective Lines never being shown in Custom Scoreboard (#1377)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt
index 1b51110a5..e00ee2397 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt
@@ -32,6 +32,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils.inDungeons
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.NumberUtil.percentageColor
import at.hannibal2.skyhanni.utils.RenderUtils.HorizontalAlignment
+import at.hannibal2.skyhanni.utils.StringUtils.anyMatches
import at.hannibal2.skyhanni.utils.StringUtils.firstLetterUppercase
import at.hannibal2.skyhanni.utils.StringUtils.matches
import at.hannibal2.skyhanni.utils.StringUtils.pluralize
@@ -617,8 +618,7 @@ private fun getObjectiveDisplayPair() = buildList {
}
private fun getObjectiveShowWhen(): Boolean =
- !inAnyIsland(IslandType.KUUDRA_ARENA)
- && ScoreboardData.sidebarLinesFormatted.none { ScoreboardPattern.objectivePattern.matches(it) }
+ ScoreboardPattern.objectivePattern.anyMatches(ScoreboardData.sidebarLinesFormatted)
private fun getSlayerDisplayPair(): List<ScoreboardElementType> = listOf(
(if (SlayerAPI.hasActiveSlayerQuest()) "Slayer Quest" else "<hidden>") to HorizontalAlignment.LEFT,