From ed5a549b9626e4df1cee60362cd4d77d684be0c5 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 18 Oct 2023 08:04:46 +0700 Subject: [PATCH] java.lang.RuntimeException: This piece should be unreachable at TRANSFORMER/overdrive_that_matters@1.4-SNAPSHOT-aa513343/ru.dbotthepony.mc.otm.matter.MatterManager$Resolver.doDetermineValue(MatterManager.kt:935) --- src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt index dd5d25f12..7d63a45e6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt @@ -930,7 +930,8 @@ object MatterManager { } if (accumulatedMatter == null || accumulatedComplexity == null) { - throw RuntimeException("This piece should be unreachable") + comment(item, TextComponent("${recipe.formattedName} ended up with undefined matter value and/or complexity (all inputs skipped)")) + return Result.MISSING } if (!accumulatedMatter.isPositive || accumulatedComplexity <= 0.0) {