aboutsummaryrefslogtreecommitdiff
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
commit0115e5dfa1de7f5f937d98a4e235595c0c954530 (patch)
treeeaf0c34abff81bcfe2bdbf366f762eb7ee35fa63
parent2164f5f39a26f0e5a8367aaa4d75ecff7b161142 (diff)
downloadSkyHanni-0115e5dfa1de7f5f937d98a4e235595c0c954530.tar.gz
SkyHanni-0115e5dfa1de7f5f937d98a4e235595c0c954530.tar.bz2
SkyHanni-0115e5dfa1de7f5f937d98a4e235595c0c954530.zip
Fixed bug
-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()) {