Skip to content

Commit

Permalink
Fix: showBingoRankNumber option not working (hannibal002#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs authored Sep 3, 2024
1 parent 2b92f20 commit 602aab4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object AdvancedPlayerList {

private val levelPattern by RepoPattern.pattern(
"misc.compacttablist.advanced.level",
".*\\[(?<level>.*)] §r(?<name>.*)"
".*\\[(?<level>.*)] §r(?<name>.*)",
)

private var playerData = mutableMapOf<String, PlayerData>()
Expand Down Expand Up @@ -193,7 +193,9 @@ object AdvancedPlayerList {
} else ""

var suffix = if (config.hideEmblem) {
if (data.ironman) "§7♲" else data.bingoLevel?.let { BingoAPI.getBingoIcon(it) } ?: ""
if (data.ironman) "§7♲" else data.bingoLevel?.let {
BingoAPI.getBingoIcon(if (config.showBingoRankNumber) it else -1)
} ?: ""
} else data.nameSuffix

if (config.markSpecialPersons) {
Expand Down

0 comments on commit 602aab4

Please sign in to comment.