diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-21 22:08:25 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-21 22:08:25 +0100 |
commit | b767e42d07aa31d66bd2dd96e4ee086edbb13e5e (patch) | |
tree | cb09bfca19c26182864b2bec42e730a649d43665 /src/main/java/at/hannibal2/skyhanni | |
parent | ce6d65565f5bc93791d015f90c03f2cf77c661b7 (diff) | |
download | skyhanni-b767e42d07aa31d66bd2dd96e4ee086edbb13e5e.tar.gz skyhanni-b767e42d07aa31d66bd2dd96e4ee086edbb13e5e.tar.bz2 skyhanni-b767e42d07aa31d66bd2dd96e4ee086edbb13e5e.zip |
Make FF Display only visible while holding a farming tool in hand.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt | 5 |
1 files changed, 2 insertions, 3 deletions
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 982ff7bc1..e200ec9f6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt @@ -72,6 +72,7 @@ class FarmingFortuneDisplay { fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { if (!isEnabled()) return if (GardenAPI.hideExtraGuis()) return + if (GardenAPI.cropInHand == null) return config.pos.renderStringsAndItems(display, posLabel = "True Farming Fortune") } @@ -266,9 +267,7 @@ class FarmingFortuneDisplay { } } - fun getCurrentFarmingFortune(): Double { - return tabFortuneUniversal + tabFortuneCrop - } + fun getCurrentFarmingFortune() = tabFortuneUniversal + tabFortuneCrop fun CropType.getLatestTrueFarmingFortune() = latestFF?.get(this) } |