Skip to content

Commit

Permalink
detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
Chissl committed Dec 24, 2024
1 parent 8b698e0 commit cf7b2f4
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cf7b2f4

Please sign in to comment.