diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 5 |
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 |