From 804dfed42c5d62c0831591e95f697ae676bf6b01 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 17 Nov 2022 22:39:55 +0700 Subject: [PATCH] Account for `compute` entires in backtrack code (despite it should not have reached backtracking if there is compute entry) --- src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt | 4 ++++ 1 file changed, 4 insertions(+) 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