Fix race condition in crafting task
This commit is contained in:
@@ -67,6 +67,10 @@ public class BasicCraftingTask implements ICraftingTask {
|
|||||||
itemsTook.add(took);
|
itemsTook.add(took);
|
||||||
|
|
||||||
satisfied[i] = true;
|
satisfied[i] = true;
|
||||||
|
|
||||||
|
if (childTasks[i]) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else if (!childTasks[i]) {
|
} else if (!childTasks[i]) {
|
||||||
CraftingPattern pattern = controller.getPattern(input);
|
CraftingPattern pattern = controller.getPattern(input);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user