Fix oredict option on patterns for items that have no oredict entry.
This commit is contained in:
@@ -52,6 +52,8 @@ public class CraftingPattern implements ICraftingPattern {
|
|||||||
} else if (oredict) {
|
} else if (oredict) {
|
||||||
NonNullList<ItemStack> equivalent = NonNullList.create();
|
NonNullList<ItemStack> equivalent = NonNullList.create();
|
||||||
|
|
||||||
|
equivalent.add(input.copy());
|
||||||
|
|
||||||
for (ItemStack equivalentStack : StackUtils.getEquivalentStacks(input)) {
|
for (ItemStack equivalentStack : StackUtils.getEquivalentStacks(input)) {
|
||||||
equivalent.add(ItemHandlerHelper.copyStackWithSize(equivalentStack, input.getCount()));
|
equivalent.add(ItemHandlerHelper.copyStackWithSize(equivalentStack, input.getCount()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user