diff options
-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) } |