Overview
Comment: | add defensive check against recipes that change types |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
538680660560b8a614fcafd8e45ed488 |
User & Date: | lexi on 2021-07-10 21:15:26 |
Other Links: | manifest | tags |
Context
2021-07-10
| ||
21:15 | make proper keg recipe canonical check-in: 3f5aae21c0 user: lexi tags: trunk | |
21:15 | add defensive check against recipes that change types check-in: 5386806605 user: lexi tags: trunk | |
00:43 | remove unnecessary neighbor restriction check-in: ced73b0ebe user: lexi tags: trunk | |
Changes
Modified cookbook.lua from [bc084489e5] to [207e1d6da6].
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