aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt4
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
+}