From 41022a4c79b49e6a1aa861cce666e30f6099eca7 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 16:19:34 +0100 Subject: compact title --- .../at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') 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 c682650bd..344e36bd3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt @@ -57,15 +57,22 @@ class CropMoneyDisplay { private fun drawDisplay(): MutableList> { val newDisplay = mutableListOf>() + + val title = if (config.moneyPerHourCompact) { + Collections.singletonList("§7Money per hour:") + } else { + Collections.singletonList("§7Money per hour when selling:") + } + if (!ready) { - newDisplay.add(Collections.singletonList("§7Money per hour when selling:")) + newDisplay.add(title) newDisplay.add(Collections.singletonList("§eLoading...")) return newDisplay } if (!hasCropInHand && !config.moneyPerHourAlwaysOn) return newDisplay - newDisplay.add(Collections.singletonList("§7Money per hour when selling:")) + newDisplay.add(title) val moneyPerHourData = calculateMoneyPerHour() if (moneyPerHourData.isEmpty()) { -- cgit