aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorLuna <luna@alexia.lol>2024-06-30 11:14:55 +0200
committerGitHub <noreply@github.com>2024-06-30 11:14:55 +0200
commit7c2f45cc229b8767f83fdf74f6a0aea870f114c3 (patch)
treeb0fee9dbb3495eb73d7a0dcb42327c03b91aa625 /src/main/java/at/hannibal2
parent87814c6454555f48494265f41d4767dcc8483bb2 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt6
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
}