diff options
author | NetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com> | 2024-08-15 17:14:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 23:14:04 +0200 |
commit | 457fa4fe5264c74ab17a94cd7359c680c357a1b7 (patch) | |
tree | b612612740584c04c249ee497c77320c2ddd54d6 /src/main | |
parent | 0077255f5b8a3c4cfd7731cb759430ae01b146c0 (diff) | |
download | skyhanni-457fa4fe5264c74ab17a94cd7359c680c357a1b7.tar.gz skyhanni-457fa4fe5264c74ab17a94cd7359c680c357a1b7.tar.bz2 skyhanni-457fa4fe5264c74ab17a94cd7359c680c357a1b7.zip |
Fix: Visible color codes in Discord RPC (#2344)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt index 6eff315d3..53121e39a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt @@ -56,7 +56,7 @@ var beenAfkFor = SimpleTimeMark.now() fun getPetDisplay(): String = PetAPI.currentPet?.let { val colorCode = it.substring(1..2).first() - val petName = it.substring(2) + val petName = it.substring(2).removeColor() val petLevel = getCurrentPet()?.petLevel?.currentLevel ?: "?" "[Lvl $petLevel] ${colorCodeToRarity(colorCode)} $petName" |