aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-06 21:36:10 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-06 21:36:10 +0200
commit027d5660c4961e7e554bc1f7d54265fa73c614ef (patch)
tree5ff9328c7c7726ee1ebe212933319bac48c23586 /src/main/java/at/hannibal2
parent15ac449c0381fbd142748165c29fa538aeb2a5fa (diff)
downloadskyhanni-027d5660c4961e7e554bc1f7d54265fa73c614ef.tar.gz
skyhanni-027d5660c4961e7e554bc1f7d54265fa73c614ef.tar.bz2
skyhanni-027d5660c4961e7e554bc1f7d54265fa73c614ef.zip
Fixed bug while displaying crop milestone info
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt
index b443acb93..b2e63c497 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt
@@ -121,6 +121,10 @@ object GardenCropMilestoneDisplay {
mushroomCowPerkDisplay = emptyList()
bestCropTime.display = emptyList()
val currentCrop = GardenAPI.getCurrentlyFarmedCrop()
+ if (GardenCropMilestones.cropCounter.isEmpty()) {
+ LorenzUtils.debug("Garden Crop Milestone Display: crop counter data not yet loaded!")
+ return
+ }
currentCrop?.let {
progressDisplay = drawProgressDisplay(it, it.getCounter())
}