From 6d832dadb8902fb34438e686b0e62160f82bda22 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:58:48 +0200 Subject: [PATCH] fix Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> --- .../gui/customscoreboard/ScoreboardElements.kt | 10 +++++----- .../gui/customscoreboard/UnknownLinesHandler.kt | 2 +- 2 files changed, 6 insertions(+), 6 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 467f752daac2..f16ef52f8448 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 @@ -815,15 +815,15 @@ private fun getFooterDisplayPair(): List = ).flatten() private fun getExtraDisplayPair(): List { - if (confirmedUnknownLines.isEmpty()) return listOf("" to HorizontalAlignment.LEFT) - amountOfUnknownLines = confirmedUnknownLines.size + if (unconfirmedUnknownLines.isEmpty()) return listOf("" to HorizontalAlignment.LEFT) + amountOfUnknownLines = unconfirmedUnknownLines.size - return listOf("§cUndetected Lines:" to HorizontalAlignment.LEFT) + confirmedUnknownLines.map { it to HorizontalAlignment.LEFT } + return listOf("§cUndetected Lines:" to HorizontalAlignment.LEFT) + unconfirmedUnknownLines.map { it to HorizontalAlignment.LEFT } } private fun getExtraShowWhen(): Boolean { - if (confirmedUnknownLines.isEmpty()) { + if (unconfirmedUnknownLines.isEmpty()) { amountOfUnknownLines = 0 } - return confirmedUnknownLines.isNotEmpty() + return unconfirmedUnknownLines.isNotEmpty() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt index eeaa0b447eaf..7d3a63d55c72 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt @@ -173,7 +173,7 @@ object UnknownLinesHandler { /* - * handle broken scoreboard lines + * Handle broken scoreboard lines */ confirmedUnknownLines.forEach { line -> if (!unconfirmedUnknownLines.contains(line)) {