From b168386ac71edc61d1e8da72ef1bee0ae7bc4918 Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Fri, 29 Dec 2023 09:17:23 +0100 Subject: 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 --- .../skyhanni/features/garden/inventory/GardenCropMilestoneInventory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit