diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 6 |
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 a521bb0ed..7c96f4efa 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 @@ -73,8 +73,7 @@ object AdvancedPlayerList { playerData.levelText = levelText index++ if (name.size > index) { - val nameSuffix = name.drop(index).joinToString(" ") - playerData.nameSuffix = nameSuffix + var nameSuffix = name.drop(index).joinToString(" ") if (nameSuffix.contains("♲")) { playerData.ironman = true } else { @@ -82,13 +81,16 @@ object AdvancedPlayerList { } if (IslandType.CRIMSON_ISLE.isInIsland()) { playerData.faction = if (line.contains("§c⚒")) { + nameSuffix = nameSuffix.replace("§c⚒", "") CrimsonIsleFaction.BARBARIAN } else if (line.contains("§5ቾ")) { + nameSuffix = nameSuffix.replace("§5ቾ", "") CrimsonIsleFaction.MAGE } else { CrimsonIsleFaction.NONE } } + playerData.nameSuffix = nameSuffix } else { playerData.nameSuffix = "" } |