Skip to content

Commit

Permalink
fix progress to maxed milestone appearing twice
Browse files Browse the repository at this point in the history
hypixel shows the progress on milestones of 20 and above, and skyhanni was showing it in 20 and below, so it showed both if you had a milestone at 20
  • Loading branch information
ItsEmpa authored Dec 25, 2023
1 parent 69b7a46 commit 077ab34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 077ab34

Please sign in to comment.