diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-06 21:36:10 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-06 21:36:10 +0200 |
commit | 027d5660c4961e7e554bc1f7d54265fa73c614ef (patch) | |
tree | 5ff9328c7c7726ee1ebe212933319bac48c23586 /src/main/java/at/hannibal2 | |
parent | 15ac449c0381fbd142748165c29fa538aeb2a5fa (diff) | |
download | skyhanni-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.kt | 4 |
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()) } |