diff options
author | Luna <luna@alexia.lol> | 2024-06-30 11:14:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 11:14:55 +0200 |
commit | 7c2f45cc229b8767f83fdf74f6a0aea870f114c3 (patch) | |
tree | b0fee9dbb3495eb73d7a0dcb42327c03b91aa625 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 87814c6454555f48494265f41d4767dcc8483bb2 (diff) | |
download | skyhanni-7c2f45cc229b8767f83fdf74f6a0aea870f114c3.tar.gz skyhanni-7c2f45cc229b8767f83fdf74f6a0aea870f114c3.tar.bz2 skyhanni-7c2f45cc229b8767f83fdf74f6a0aea870f114c3.zip |
Fix: Overflow level up message on Milestone 46 (#2161)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt index 4e91eadb2..69e12796e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt @@ -237,7 +237,7 @@ object GardenCropMilestoneDisplay { } if (overflowConfig.chat) { - if (currentTier >= 46 && currentTier == previousNext && + if (currentTier > 46 && currentTier == previousNext && nextRealTier == currentTier + 1 && lastWarnedLevel != currentTier ) { GardenCropMilestones.onOverflowLevelUp(crop, currentTier - 1, nextRealTier - 1) @@ -246,7 +246,7 @@ object GardenCropMilestoneDisplay { } if (overflowConfig.chat) { - if (currentTier >= 46 && currentTier == previousNext && + if (currentTier > 46 && currentTier == previousNext && nextRealTier == currentTier + 1 && lastWarnedLevel != currentTier ) { GardenCropMilestones.onOverflowLevelUp(crop, currentTier - 1, nextRealTier - 1) @@ -338,7 +338,7 @@ object GardenCropMilestoneDisplay { val percentageFormat = LorenzUtils.formatPercentage(have.toDouble() / need.toDouble()) lineMap[MushroomTextEntry.PERCENTAGE] = Renderable.string("§7Percentage: §e$percentageFormat") - if (currentTier >= 46 && currentTier == previousMushNext && nextTier == currentTier + 1 && lastMushWarnedLevel != currentTier) { + if (currentTier > 46 && currentTier == previousMushNext && nextTier == currentTier + 1 && lastMushWarnedLevel != currentTier) { GardenCropMilestones.onOverflowLevelUp(mushroom, currentTier - 1, nextTier - 1) lastMushWarnedLevel = currentTier } |