From f5bd9e61c3e70079ba08c0dd78db22f402023571 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 11 Apr 2023 02:57:53 +0200 Subject: Added information text that both "Best crop time" and "crop money display" only work when "crop progress display" is activated --- .../java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt | 4 ++++ .../at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt | 2 +- .../java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt index 1b94bd231..28881b7f1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt @@ -76,6 +76,10 @@ class CropMoneyDisplay { newDisplay.addAsSingletonList(fullTitle(title)) + if (!config.cropMilestoneProgress) { + newDisplay.addAsSingletonList("§cCrop Milestone Progress Display is disabled!") + return newDisplay + } val moneyPerHourData = calculateMoneyPerHour() if (moneyPerHourData.isEmpty()) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt index 781691546..c7351b763 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt @@ -70,7 +70,7 @@ class FarmingFortuneDisplay { @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { if (!isEnabled()) return - config.farmingFortunePos.renderSingleLineWithItems(display, posLabel = "Farming Fortune") + config.farmingFortunePos.renderSingleLineWithItems(display, posLabel = "True Farming Fortune") } @SubscribeEvent 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 003bcde11..87666a1ed 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt @@ -40,6 +40,11 @@ class GardenBestCropTime { newList.addAsSingletonList("§eBest Crop Time §7($title§7)") } + if (!config.cropMilestoneProgress) { + newList.addAsSingletonList("§cCrop Milestone Progress Display is disabled!") + return newList + } + if (sorted.isEmpty()) { newList.addAsSingletonList("§cFarm crops to add them to this list!") return newList -- cgit