From cef5bc4c9914235476d9b1a07c8ef83e8d159827 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:02:06 +0200 Subject: Fix: Fix pet error with discord rich presence (#1488) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 } -- cgit