cut crafting tree earlier if the item is available

fix job byte size to 8 per crafting + 1 per item used/stored
This commit is contained in:
PrototypeTrousers
2021-11-02 15:33:14 -03:00
parent 50f21125c8
commit 304f394497
2 changed files with 37 additions and 39 deletions
@@ -241,7 +241,6 @@ public class CraftingTreeProcess
o.setStackSize( o.getStackSize() * i );
inv.injectItems( o, Actionable.MODULATE, src );
}
this.crafts += i;
}
@@ -253,7 +252,7 @@ public class CraftingTreeProcess
pro.dive( job );
}
job.addBytes( 8 + this.crafts + this.bytes );
job.addBytes( this.crafts * 8 + this.bytes );
}
IAEItemStack getAmountCrafted( IAEItemStack what2 )