diff options
Diffstat (limited to 'src')
-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()) } |