aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com>2024-08-15 17:14:04 -0400
committerGitHub <noreply@github.com>2024-08-15 23:14:04 +0200
commit457fa4fe5264c74ab17a94cd7359c680c357a1b7 (patch)
treeb612612740584c04c249ee497c77320c2ddd54d6 /src
parent0077255f5b8a3c4cfd7731cb759430ae01b146c0 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt2
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"