aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 11:49:22 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 11:49:22 +0200
commitd99e3a6f916cc74aa0fdc525d7f54419029b8497 (patch)
tree71abed4146ecfff0576fce0df31597919db5c3de
parent222c9082b80e151c467e2ae14a2dd704e77e954c (diff)
downloadskyhanni-d99e3a6f916cc74aa0fdc525d7f54419029b8497.tar.gz
skyhanni-d99e3a6f916cc74aa0fdc525d7f54419029b8497.tar.bz2
skyhanni-d99e3a6f916cc74aa0fdc525d7f54419029b8497.zip
more exact error message
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt2
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) {