Makes the molecular assembler check that items are exact matches if the pattern does not allow for substitutions.

This commit is contained in:
Sebastian Hartte
2020-06-17 00:15:54 +02:00
parent e9e06fa7ee
commit 52da8bdb67
@@ -212,6 +212,14 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
this.testFrame.setInventorySlotContents(slotIndex, i);
// If we cannot substitute, the items must match exactly
if (!canSubstitute && slotIndex < inputs.length) {
if (!inputs[slotIndex].isSameType(i)) {
this.markItemAs(slotIndex, i, TestStatus.DECLINE);
return false;
}
}
if (this.standardRecipe.matches(this.testFrame, w)) {
final ItemStack testOutput = this.standardRecipe.getCraftingResult(this.testFrame);