Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) мНет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 88: | Строка 88: | ||
end | end | ||
function getrecipesbyname(frame, str) -- should not be inviked | function getrecipesbyname(frame, tabl, str) -- should not be inviked | ||
local out = {} | local out = {} | ||
for type, recipes in pairs( | for type, recipes in pairs(tabl) do | ||
out[type]= {} | out[type]= {} | ||
for recipeId, recipe in pairs(recipes) do | for recipeId, recipe in pairs(recipes) do | ||