Makes the molecular assembler check that items are exact matches if the pattern does not allow for substitutions.
This commit is contained in:
@@ -212,6 +212,14 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
|
|||||||
|
|
||||||
this.testFrame.setInventorySlotContents(slotIndex, i);
|
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)) {
|
if (this.standardRecipe.matches(this.testFrame, w)) {
|
||||||
final ItemStack testOutput = this.standardRecipe.getCraftingResult(this.testFrame);
|
final ItemStack testOutput = this.standardRecipe.getCraftingResult(this.testFrame);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user