aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-04-01 20:24:27 +0200
committerGitHub <noreply@github.com>2024-04-01 20:24:27 +0200
commitf82744d9e30c8692dd61a5365cd95baeeb30da0c (patch)
tree9f8fcddbe4d76daf64c4c778dedf359c3eea1c11 /src/main/java/at/hannibal2/skyhanni
parentab5b8705fc6d1da7e5dd99071f461b842da00e6d (diff)
downloadskyhanni-f82744d9e30c8692dd61a5365cd95baeeb30da0c.tar.gz
skyhanni-f82744d9e30c8692dd61a5365cd95baeeb30da0c.tar.bz2
skyhanni-f82744d9e30c8692dd61a5365cd95baeeb30da0c.zip
Fix: Fixed "No Power" showing "No" in Custom Scoreboard (#1332)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt5
1 files changed, 2 insertions, 3 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 8e6870e26..744b4fa45 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
@@ -542,11 +542,10 @@ private fun getLobbyDisplayPair(): List<ScoreboardElementType> {
private fun getPowerDisplayPair() = listOf(
(MaxwellAPI.currentPower?.let {
val mp = if (maxwellConfig.showMagicalPower) "§7(§6${MaxwellAPI.magicalPower?.addSeparators()}§7)" else ""
- val name = it.replace(" Power", "")
if (displayConfig.displayNumbersFirst) {
- "§a$name Power $mp"
+ "§a${it.replace(" Power", "")} Power $mp"
} else {
- "Power: §a$name $mp"
+ "Power: §a$it $mp"
}
}
?: "§cOpen \"Your Bags\"!") to HorizontalAlignment.LEFT