Further fixes of how passthrough items are handled

* When evaluating a plan, only give the pass-through treatment to
  items if the step they're part of was actually executed
* When marking a step "complete", ignore passthrough items
This commit is contained in:
Andrew Miner
2016-04-16 20:33:05 -07:00
parent 88e57b1200
commit 93c98e16ac
5 changed files with 26 additions and 17 deletions
@@ -31,6 +31,7 @@ module.exports = class CraftingStep
completeInto: (targetInventory)->
for stack in @_recipe.output
continue if @_recipe.isPassThroughFor stack.itemSlug
quantity = @_recipe.getQuantityProduced stack.itemSlug
targetInventory.add stack.itemSlug, quantity * @_multiplier