aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 16:05:17 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 16:05:17 +0100
commit5ec733e35b7602e2f9f530c4c6207fe3858e2793 (patch)
treeeaf0c34abff81bcfe2bdbf366f762eb7ee35fa63 /src/main
parentaa332f61bac03a13c9bf9a81fb2d3eb896f4c327 (diff)
downloadskyhanni-5ec733e35b7602e2f9f530c4c6207fe3858e2793.tar.gz
skyhanni-5ec733e35b7602e2f9f530c4c6207fe3858e2793.tar.bz2
skyhanni-5ec733e35b7602e2f9f530c4c6207fe3858e2793.zip
Fixed bug
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt4
1 files changed, 3 insertions, 1 deletions
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 8771aaf52..c682650bd 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
@@ -57,14 +57,16 @@ class CropMoneyDisplay {
private fun drawDisplay(): MutableList<List<Any>> {
val newDisplay = mutableListOf<List<Any>>()
- newDisplay.add(Collections.singletonList("§7Money per hour when selling:"))
if (!ready) {
+ newDisplay.add(Collections.singletonList("§7Money per hour when selling:"))
newDisplay.add(Collections.singletonList("§eLoading..."))
return newDisplay
}
if (!hasCropInHand && !config.moneyPerHourAlwaysOn) return newDisplay
+ newDisplay.add(Collections.singletonList("§7Money per hour when selling:"))
+
val moneyPerHourData = calculateMoneyPerHour()
if (moneyPerHourData.isEmpty()) {
if (!GardenAPI.isSpeedDataEmpty()) {