aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-06-12 16:18:27 +0200
committerGitHub <noreply@github.com>2024-06-12 16:18:27 +0200
commita432e3e77275a26c856bb53ad2469b26c2e7ca3c (patch)
tree9e6382c42c6a32d5cc40fc56b502bd3093e185d2 /src
parent4b3caa47fac5e6f41708b89713582651822dae32 (diff)
downloadskyhanni-a432e3e77275a26c856bb53ad2469b26c2e7ca3c.tar.gz
skyhanni-a432e3e77275a26c856bb53ad2469b26c2e7ca3c.tar.bz2
skyhanni-a432e3e77275a26c856bb53ad2469b26c2e7ca3c.zip
Fix: Unknown Lines not appearing instantly (#2063)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt2
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 467f752da..f16ef52f8 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<ScoreboardElementType> =
).flatten()
private fun getExtraDisplayPair(): List<ScoreboardElementType> {
- if (confirmedUnknownLines.isEmpty()) return listOf("<hidden>" to HorizontalAlignment.LEFT)
- amountOfUnknownLines = confirmedUnknownLines.size
+ if (unconfirmedUnknownLines.isEmpty()) return listOf("<hidden>" 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 75bfa1a80..560b65980 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
@@ -174,7 +174,7 @@ object UnknownLinesHandler {
/*
- * handle broken scoreboard lines
+ * Handle broken scoreboard lines
*/
confirmedUnknownLines.forEach { line ->
if (!unconfirmedUnknownLines.contains(line)) {