aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-04-18 23:02:06 +0200
committerGitHub <noreply@github.com>2024-04-18 23:02:06 +0200
commitcef5bc4c9914235476d9b1a07c8ef83e8d159827 (patch)
tree9b1c34b8f3ae67b370998329c8e50d4be78d8677 /src/main
parent3fdbf7a2b943fd5fe95ffa9766ef631ca75c090d (diff)
downloadskyhanni-cef5bc4c9914235476d9b1a07c8ef83e8d159827.tar.gz
skyhanni-cef5bc4c9914235476d9b1a07c8ef83e8d159827.tar.bz2
skyhanni-cef5bc4c9914235476d9b1a07c8ef83e8d159827.zip
Fix: Fix pet error with discord rich presence (#1488)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt
index d4aa147e8..61b22a7d7 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt
@@ -32,7 +32,7 @@ object PetAPI {
// Contains color code + name and for older SkyHanni users maybe also the pet level
var currentPet: String?
- get() = ProfileStorageData.profileSpecific?.currentPet
+ get() = ProfileStorageData.profileSpecific?.currentPet?.takeIf { it.isNotEmpty() }
set(value) {
ProfileStorageData.profileSpecific?.currentPet = value
}