diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-12 22:33:57 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-12 22:33:57 +0200 |
| commit | 904929b3fc73ef72bf2e09dbd26d05628e2d7627 (patch) | |
| tree | 9d03dc369eb6f13d12a602b3c34cdaf7202abbca | |
| parent | 3004cdf42ae6254d0cf72328e8a9e7579299acce (diff) | |
| download | SkyHanni-904929b3fc73ef72bf2e09dbd26d05628e2d7627.tar.gz SkyHanni-904929b3fc73ef72bf2e09dbd26d05628e2d7627.tar.bz2 SkyHanni-904929b3fc73ef72bf2e09dbd26d05628e2d7627.zip | |
Small stuff v2
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt | 3 |
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 |
