Skip to content

Commit

Permalink
Fix: Fixed "No Power" showing "No" in Custom Scoreboard (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored Apr 1, 2024
1 parent ab5b870 commit f82744d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f82744d

Please sign in to comment.