Differences From
Artifact [bc084489e5]:
524 524 if not recipe_kinds[kind] then
525 525 log.fatalf('attempted to pick recipe of unknown kind "%s"', kind)
526 526 end
527 527 return recipe_kinds[kind].pick(restrict), kind
528 528 end
529 529
530 530 local render_recipe = function(kind,ingredients,result,notes_right)
531 + if not ingredients then
532 + log.errf('tried to render %s recipe for %s but no ingredients are listed', kind, result)
533 + return false
534 + end
531 535 local k = recipe_kinds[kind]
532 536 local t = ''
533 537 local props = k.props(result)
534 538 for i=1,#k.slots do
535 539 local ing = ingredients[i]
536 540 local x, y = k.slots[i][1], k.slots[i][2]
537 541 if ing and ing ~= '' then