aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-11 02:57:53 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-11 02:57:53 +0200
commitf5bd9e61c3e70079ba08c0dd78db22f402023571 (patch)
tree4cf63a41f4cf541d0f4294b7576948b65df37795 /src
parent5d1bc5e15e7e71c91954154a1c1d1db42651f933 (diff)
downloadskyhanni-f5bd9e61c3e70079ba08c0dd78db22f402023571.tar.gz
skyhanni-f5bd9e61c3e70079ba08c0dd78db22f402023571.tar.bz2
skyhanni-f5bd9e61c3e70079ba08c0dd78db22f402023571.zip
Added information text that both "Best crop time" and "crop money display" only work when "crop progress display" is activated
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenBestCropTime.kt5
3 files changed, 10 insertions, 1 deletions
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