From f82744d9e30c8692dd61a5365cd95baeeb30da0c Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Mon, 1 Apr 2024 20:24:27 +0200 Subject: Fix: Fixed "No Power" showing "No" in Custom Scoreboard (#1332) --- .../skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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 { 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 -- cgit