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)
This commit is contained in:
DBotThePony 2023-10-18 08:04:46 +07:00
parent aa513343a5
commit ed5a549b96
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

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