Show list to make in order to be made

This commit is contained in:
Andrew Miner
2015-01-04 15:18:00 -08:00
parent 761a244a83
commit 5c5ea861cc
3 changed files with 12 additions and 1 deletions
@@ -110,7 +110,15 @@ module.exports = class CraftingTableController extends BaseController
if @model.plan?
@_resetStackControllers()
@model.plan.need.each (stack)=> makeController 'need', stack
@model.plan.make.each (stack)=> makeController 'make', stack
slugs = {}
for recipe in @model.plan.steps
slug = recipe.item.slug
if not slugs[slug]?
slugs[slug] = true
stack = @model.plan.make.getStack slug
makeController 'make', stack
@model.plan.result.each (stack)=> makeController 'result', stack
super