aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-22 11:05:30 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-22 11:05:30 +0100
commitab13293cdad056ccc4552ec339cf2b9d86a0cbd6 (patch)
tree131400bcf0441271ce62091324004ed147752845 /src/main/java/at/hannibal2/skyhanni/features
parent75f6b3be1876518753b5d75dbbf6bd263021ee04 (diff)
downloadskyhanni-ab13293cdad056ccc4552ec339cf2b9d86a0cbd6.tar.gz
skyhanni-ab13293cdad056ccc4552ec339cf2b9d86a0cbd6.tar.bz2
skyhanni-ab13293cdad056ccc4552ec339cf2b9d86a0cbd6.zip
Fixed crimson isle faction icon in tab list showing twice and not going away fully when enabling the "hide faction" option of advanced player list.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-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 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 = ""
}