Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 124: | Строка 124: | ||
local out = {} | local out = {} | ||
for type, recipes in pairs(tabl) do | for type, recipes in pairs(tabl) do | ||
out[type] = {} | |||
for recipeId, recipe in pairs(recipes) do | for recipeId, recipe in pairs(recipes) do | ||
if | if string.match(recipeId, str) then break end | ||
table.insert(out[type], recipe) | |||
end | end | ||
end | end | ||