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/features/garden | |
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/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt index 7fba5b56a..78ca8f2b7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt @@ -45,7 +45,7 @@ object GardenAPI { var toolInHand: String? = null var itemInHand: ItemStack? = null var cropInHand: CropType? = null - val mushroomCowPet get() = PetAPI.currentPet?.contains("Mooshroom Cow") ?: false + val mushroomCowPet get() = PetAPI.isCurrentPet("Mooshroom Cow") private var inBarn = false val onBarnPlot get() = inBarn && inGarden() val storage get() = ProfileStorageData.profileSpecific?.garden |