aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-12 22:33:57 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-12 22:33:57 +0200
commit5021f7d8d9403a84c9df0ca6e1ac279c30c3c879 (patch)
tree9d03dc369eb6f13d12a602b3c34cdaf7202abbca /src
parentb1df3771396f2f95910608a7edebe81869e7a955 (diff)
downloadskyhanni-5021f7d8d9403a84c9df0ca6e1ac279c30c3c879.tar.gz
skyhanni-5021f7d8d9403a84c9df0ca6e1ac279c30c3c879.tar.bz2
skyhanni-5021f7d8d9403a84c9df0ca6e1ac279c30c3c879.zip
Small stuff v2
Diffstat (limited to 'src')
-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