Add byproduct as extras, in preparation for oredict autocrafting
This commit is contained in:
@@ -57,6 +57,14 @@ public class CraftingTask implements ICraftingTask {
|
|||||||
toProcess.add(new Processable(pattern));
|
toProcess.add(new Processable(pattern));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!basePattern) {
|
||||||
|
addExtras(pattern);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (ItemStack byproduct : pattern.getByproducts()) {
|
||||||
|
extras.add(byproduct);
|
||||||
|
}
|
||||||
|
|
||||||
for (ItemStack input : pattern.getInputs()) {
|
for (ItemStack input : pattern.getInputs()) {
|
||||||
ItemStack inputInNetwork = list.get(input);
|
ItemStack inputInNetwork = list.get(input);
|
||||||
|
|
||||||
@@ -99,10 +107,6 @@ public class CraftingTask implements ICraftingTask {
|
|||||||
list.remove(input, true);
|
list.remove(input, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!basePattern) {
|
|
||||||
addExtras(pattern);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user