aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2023-12-29 09:17:23 +0100
committerGitHub <noreply@github.com>2023-12-29 09:17:23 +0100
commitb168386ac71edc61d1e8da72ef1bee0ae7bc4918 (patch)
tree9eea6a96d9a977893fc084622f95303b91c57b9f /src/main/java/at/hannibal2/skyhanni
parent0f5802cfca6076abb7bedc65d57b4fc7e69d7a12 (diff)
downloadskyhanni-b168386ac71edc61d1e8da72ef1bee0ae7bc4918.tar.gz
skyhanni-b168386ac71edc61d1e8da72ef1bee0ae7bc4918.tar.bz2
skyhanni-b168386ac71edc61d1e8da72ef1bee0ae7bc4918.zip
fix progress to maxed milestone appearing twice (#834)
Fixed progress to maxed milestone appearing twice in the crop milestone menu when having milestone 20. #834
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt2
1 files changed, 1 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 6c4aa6787..890188f34 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,7 +58,7 @@ class GardenCropMilestoneInventory {
val crop = GardenCropMilestones.getCropTypeByLore(event.itemStack) ?: return
val tier = GardenCropMilestones.getTierForCropCount(crop.getCounter(), crop)
- if (tier > 20) return
+ if (tier >= 20) return
val maxTier = GardenCropMilestones.getMaxTier()
val maxCounter = GardenCropMilestones.getCropsForTier(maxTier, crop)