diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-04-18 23:02:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 23:02:06 +0200 |
commit | cef5bc4c9914235476d9b1a07c8ef83e8d159827 (patch) | |
tree | 9b1c34b8f3ae67b370998329c8e50d4be78d8677 /src | |
parent | 3fdbf7a2b943fd5fe95ffa9766ef631ca75c090d (diff) | |
download | skyhanni-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')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt | 2 |
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 } |