diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-21 21:46:16 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-21 21:46:16 +0100 |
commit | ce6d65565f5bc93791d015f90c03f2cf77c661b7 (patch) | |
tree | 6a0a94bf16836fe52cef2c6924cb0e25a7c3688d /src/main/java | |
parent | d72056eebbf41378826131a9b1ee76159244646e (diff) | |
download | skyhanni-ce6d65565f5bc93791d015f90c03f2cf77c661b7.tar.gz skyhanni-ce6d65565f5bc93791d015f90c03f2cf77c661b7.tar.bz2 skyhanni-ce6d65565f5bc93791d015f90c03f2cf77c661b7.zip |
Show max crop milestone only below tier 20
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt index 495696a3e..cb236050b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt @@ -58,6 +58,8 @@ class GardenCropMilestoneInventory { val itemStack = event.itemStack ?: return val crop = GardenCropMilestones.getCropTypeByLore(itemStack) ?: return + val tier = GardenCropMilestones.getTierForCropCount(crop.getCounter(), crop) + if (tier > 20) return val maxTier = GardenCropMilestones.getMaxTier() val maxCounter = GardenCropMilestones.getCropsForTier(maxTier, crop) @@ -81,4 +83,4 @@ class GardenCropMilestoneInventory { event.move(3, "garden.numberAverageCropMilestone", "garden.number.averageCropMilestone") event.move(3, "garden.cropMilestoneTotalProgress", "garden.tooltipTweak.cropMilestoneTotalProgress") } -}
\ No newline at end of file +} |