reset crafting step on error, #556
This commit is contained in:
@@ -62,7 +62,15 @@ public class CraftingStepCraft extends CraftingStep {
|
||||
network.extractItem(RSUtils.EMPTY_BUCKET, 1, compare);
|
||||
actualInputs.add(insertStack.copy());
|
||||
} else {
|
||||
actualInputs.add(network.extractItem(insertStack, insertStack.stackSize, compare));
|
||||
ItemStack input = network.extractItem(insertStack, insertStack.stackSize, compare);
|
||||
if (input != null) {
|
||||
actualInputs.add(input);
|
||||
} else {
|
||||
// Abort task re-insert taken stacks and reset state
|
||||
toInsertItems.addAll(actualInputs.getStacks());
|
||||
startedProcessing = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user