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 d60c611d3..ffa8f027e 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt @@ -564,6 +564,10 @@ object MatterManager { seenItems.addLast(item) try { + val indirect = Registry.indirect(item) + if (indirect.value != null) + return indirect + val result = doTryToBacktrack(item, makeCommentary) cachedIterationResults[item] = result return result