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) {