aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-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
}