diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2023-12-29 09:17:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 09:17:23 +0100 |
commit | b168386ac71edc61d1e8da72ef1bee0ae7bc4918 (patch) | |
tree | 9eea6a96d9a977893fc084622f95303b91c57b9f /src/main/java/at/hannibal2/skyhanni | |
parent | 0f5802cfca6076abb7bedc65d57b4fc7e69d7a12 (diff) | |
download | skyhanni-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.kt | 2 |
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) |