add ore dict marker while fetching pattern, #796
This commit is contained in:
@@ -188,13 +188,14 @@ public class CraftingTask implements ICraftingTask {
|
|||||||
} while ((extraStack == null || extraStack.getCount() == 0) && ++i < inputs.size());
|
} while ((extraStack == null || extraStack.getCount() == 0) && ++i < inputs.size());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
int oreDictedCompare = compare | (pattern.isOredict() ? IComparer.COMPARE_OREDICT : 0);
|
||||||
if (inputPattern == null) {
|
if (inputPattern == null) {
|
||||||
inputPattern = network.getCraftingManager().getPattern(input, compare);
|
inputPattern = network.getCraftingManager().getPattern(input, oreDictedCompare);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inputPattern != null) {
|
if (inputPattern != null) {
|
||||||
ItemStack actualCraft = inputPattern.getActualOutput(input, compare);
|
ItemStack actualCraft = inputPattern.getActualOutput(input, oreDictedCompare);
|
||||||
int craftQuantity = Math.min(inputPattern.getQuantityPerRequest(input, compare), input.getCount());
|
int craftQuantity = Math.min(inputPattern.getQuantityPerRequest(input, oreDictedCompare), input.getCount());
|
||||||
ItemStack inputCrafted = ItemHandlerHelper.copyStackWithSize(actualCraft, craftQuantity);
|
ItemStack inputCrafted = ItemHandlerHelper.copyStackWithSize(actualCraft, craftQuantity);
|
||||||
toCraft.add(inputCrafted.copy());
|
toCraft.add(inputCrafted.copy());
|
||||||
actualInputs.add(inputCrafted.copy());
|
actualInputs.add(inputCrafted.copy());
|
||||||
|
|||||||
Reference in New Issue
Block a user