diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-07 11:49:22 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-07 11:49:22 +0200 |
commit | d99e3a6f916cc74aa0fdc525d7f54419029b8497 (patch) | |
tree | 71abed4146ecfff0576fce0df31597919db5c3de /src | |
parent | 222c9082b80e151c467e2ae14a2dd704e77e954c (diff) | |
download | skyhanni-d99e3a6f916cc74aa0fdc525d7f54419029b8497.tar.gz skyhanni-d99e3a6f916cc74aa0fdc525d7f54419029b8497.tar.bz2 skyhanni-d99e3a6f916cc74aa0fdc525d7f54419029b8497.zip |
more exact error message
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) { |