From 046427a9d63814629c3066bb7787d180e4ee204f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 22 Apr 2023 22:56:04 +0200 Subject: Added option to hide the "best crop time" title above the list --- .../skyhanni/features/garden/farming/GardenBestCropTime.kt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt index b68a89de2..7810ccb8e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt @@ -36,11 +36,14 @@ class GardenBestCropTime { timeTillNextCrop.sorted() } - val title = if (gardenExp) "§2Garden Experience" else "§bSkyBlock Level" - if (config.cropMilestoneBestCompact) { - newList.addAsSingletonList("§eBest Crop Time") - } else { - newList.addAsSingletonList("§eBest Crop Time §7($title§7)") + + if (!config.cropMilestoneBestHideTitle) { + val title = if (gardenExp) "§2Garden Experience" else "§bSkyBlock Level" + if (config.cropMilestoneBestCompact) { + newList.addAsSingletonList("§eBest Crop Time") + } else { + newList.addAsSingletonList("§eBest Crop Time §7($title§7)") + } } if (!config.cropMilestoneProgress) { -- cgit