fix emitting crafts (level emitter + crafting card) not allowing already stored items to be used in autocrafting

This commit is contained in:
PrototypeTrousers
2023-07-04 12:03:48 -03:00
parent 7464647bb8
commit 3587fce218
@@ -96,15 +96,6 @@ public class CraftingTreeNode {
IAEItemStack request(final MECraftingInventory inv, long l, final IActionSource src) throws CraftBranchFailure, InterruptedException {
addNode();
this.job.handlePausing();
if (this.canEmit) {
final IAEItemStack wat = this.what.copy();
wat.setStackSize(l);
this.howManyEmitted = wat.getStackSize();
this.bytes += wat.getStackSize();
return wat;
}
final IItemList<IAEItemStack> inventoryList = inv.getItemList();
final List<IAEItemStack> thingsUsed = new ArrayList<>();
@@ -201,6 +192,16 @@ public class CraftingTreeNode {
}
}
if (this.canEmit) {
final IAEItemStack wat = this.what.copy();
wat.setStackSize(l);
this.howManyEmitted = wat.getStackSize();
this.bytes += wat.getStackSize();
return wat;
}
this.exhausted = true;
if (this.nodes.size() == 1) {