From 5021f7d8d9403a84c9df0ca6e1ac279c30c3c879 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 12 Apr 2023 22:33:57 +0200 Subject: Small stuff v2 --- .../java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') 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 -- cgit