fix emitting crafts (level emitter + crafting card) not allowing already stored items to be used in autocrafting
This commit is contained in:
@@ -96,15 +96,6 @@ public class CraftingTreeNode {
|
|||||||
IAEItemStack request(final MECraftingInventory inv, long l, final IActionSource src) throws CraftBranchFailure, InterruptedException {
|
IAEItemStack request(final MECraftingInventory inv, long l, final IActionSource src) throws CraftBranchFailure, InterruptedException {
|
||||||
addNode();
|
addNode();
|
||||||
this.job.handlePausing();
|
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 IItemList<IAEItemStack> inventoryList = inv.getItemList();
|
||||||
final List<IAEItemStack> thingsUsed = new ArrayList<>();
|
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;
|
this.exhausted = true;
|
||||||
|
|
||||||
if (this.nodes.size() == 1) {
|
if (this.nodes.size() == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user