aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-16 12:27:42 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-16 12:27:42 +0100
commited3fca1da9c642ac6bacc2c2254f36d982bd25b2 (patch)
tree2aff37e82169dd9efafb4c68b641c8506c134a60 /src/main/java/at/hannibal2/skyhanni/data
parent6146bb97e771ab8061b988d184e4c70f48ab6130 (diff)
downloadskyhanni-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.kt2
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
}