aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-09-03 18:02:48 +1000
committerGitHub <noreply@github.com>2024-09-03 10:02:48 +0200
commit602aab42e82bbab32fc00c0ee6e36f49d964a3d7 (patch)
tree0fe38f12d40c1d2d76db7df83209904f508f0b0b /src/main/java
parent2b92f20b8a080be611447635b6f27a7651d49ca0 (diff)
downloadskyhanni-602aab42e82bbab32fc00c0ee6e36f49d964a3d7.tar.gz
skyhanni-602aab42e82bbab32fc00c0ee6e36f49d964a3d7.tar.bz2
skyhanni-602aab42e82bbab32fc00c0ee6e36f49d964a3d7.zip
Fix: showBingoRankNumber option not working (#2445)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt
index 6bd731cb0..63a41f3fe 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt
@@ -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>()
@@ -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) {