From 457fa4fe5264c74ab17a94cd7359c680c357a1b7 Mon Sep 17 00:00:00 2001 From: NetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:14:04 -0400 Subject: Fix: Visible color codes in Discord RPC (#2344) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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" -- cgit