From cf7b2f460bb72177099b5d535abe2379a1389598 Mon Sep 17 00:00:00 2001 From: Chiss5618 <78828070+Chiss5618@users.noreply.github.com> Date: Tue, 24 Dec 2024 15:30:56 -0600 Subject: [PATCH] detekt --- .../features/garden/FarmingFortuneDisplay.kt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 b9745306068a..b4937a6a5059 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt @@ -174,16 +174,20 @@ object FarmingFortuneDisplay { list.add( Renderable.string( (if (config.compactFormat) "§6FF§7: " else "§6Farming Fortune§7: ") + (if (ffReduction > 0) "§c" else "§e") + - if (!recentlySwitchedTool && farmingFortune != -1.0) { - farmingFortune.roundTo(0).addSeparators() - } else "§7" + (displayCrop.getLatestTrueFarmingFortune()?.addSeparators() ?: "?"), + if (!recentlySwitchedTool && farmingFortune != -1.0) { + farmingFortune.roundTo(0).addSeparators() + } else "§7" + (displayCrop.getLatestTrueFarmingFortune()?.addSeparators() ?: "?"), ), ) add(Renderable.horizontalContainer(list)) if (ffReduction > 0) { - add(Renderable.string(if (config.compactFormat) "§cPests: §7-§e$ffReduction%" - else "§cPests are reducing your fortune by §e$ffReduction%§c!")) + add( + Renderable.string( + if (config.compactFormat) "§cPests: §7-§e$ffReduction%" + else "§cPests are reducing your fortune by §e$ffReduction%§c!" + ) + ) } if (wrongTabCrop && !config.hideMissingFortuneWarnings) {