diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-16 12:27:42 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-16 12:27:42 +0100 |
commit | ed3fca1da9c642ac6bacc2c2254f36d982bd25b2 (patch) | |
tree | 2aff37e82169dd9efafb4c68b641c8506c134a60 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 6146bb97e771ab8061b988d184e4c70f48ab6130 (diff) | |
download | skyhanni-ed3fca1da9c642ac6bacc2c2254f36d982bd25b2.tar.gz skyhanni-ed3fca1da9c642ac6bacc2c2254f36d982bd25b2.tar.bz2 skyhanni-ed3fca1da9c642ac6bacc2c2254f36d982bd25b2.zip |
Created PetAPI.isCurrentPet.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt index 9c5eac610..d8061683b 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt @@ -8,4 +8,6 @@ object PetAPI { set(value) { ProfileStorageData.profileSpecific?.currentPet = value } + + fun isCurrentPet(petName: String): Boolean = currentPet?.contains(petName) ?: false } |