diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt index bcf8e7811..b7c019475 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt @@ -148,7 +148,7 @@ object GardenCropSpeed { @SubscribeEvent fun onRepoReload(event: RepositoryReloadEvent) { try { - val dicerJson = event.getConstant("DicerDrops")!! + val dicerJson = event.getConstant("DicerDrops") ?: error("DicerDrops not found in repo") calculateAverageDicer(melonDicer, dicerJson["MELON"].asJsonObject) calculateAverageDicer(pumpkinDicer, dicerJson["PUMPKIN"].asJsonObject) } catch (e: Exception) { |