aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt
index db8cb6e07..06f82fbee 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt
@@ -54,8 +54,7 @@ class GardenBestCropTime {
var number = 0
for (crop in sorted.keys) {
val millis = timeTillNextCrop[crop]!!
- val maxUnits = if (config.cropMilestoneBestCompact) 2 else -1
- val duration = TimeUtils.formatDuration(millis, maxUnits = maxUnits)
+ val duration = TimeUtils.formatDuration(millis, maxUnits = 2)
val isCurrent = crop == currentCrop
number++
if (number > config.cropMilestoneShowOnlyBest && !isCurrent) continue