aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-12 00:53:30 +0200
committerGitHub <noreply@github.com>2024-05-12 00:53:30 +0200
commitd05565ef8a5afcc89fc5992b2d3ff64ee5f173ca (patch)
treef50384ad7cfe6ebb306a971e456afed3f809d27c /src
parent3bb4b9b9826fadd8df3507ea86b6196b6487b981 (diff)
downloadskyhanni-d05565ef8a5afcc89fc5992b2d3ff64ee5f173ca.tar.gz
skyhanni-d05565ef8a5afcc89fc5992b2d3ff64ee5f173ca.tar.bz2
skyhanni-d05565ef8a5afcc89fc5992b2d3ff64ee5f173ca.zip
Fix: Faction Chat (#1770)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
index 961c17297..035a166bb 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
@@ -170,7 +170,7 @@ class PlayerNameFormatter {
val cleanName = cleanAuthor.getText().cleanPlayerName()
val (faction, ironman, bingo) = AdvancedPlayerList.tabPlayerData[cleanName]?.let {
- val faction = it.faction.icon?.toCleanChatComponent()
+ val faction = it.faction.icon?.trim()?.toCleanChatComponent()
val ironman = if (it.ironman) "§7♲".toCleanChatComponent() else null
val bingo = it.bingoLevel?.let { level -> BingoAPI.getBingoIcon(level).toCleanChatComponent() }
listOf(faction, ironman, bingo)