Модуль:Meals Lookup: различия между версиями

Нет описания правки
Нет описания правки
Строка 396: Строка 396:
         local id = ""
         local id = ""
         out = out .. table.length(recipes) .. " " .. type .. "\n"
         out = out .. table.length(recipes) .. " " .. type .. "\n"
         if type == "microwaveRecipes" and not table.isempty(recipes) == nil then
         if type == "microwaveRecipes" and not table.isempty(recipes) then
             do
             do
                 for n, recipe in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
Строка 405: Строка 405:
                 end
                 end
             end
             end
         elseif type == "mixableRecipes" and not table.isempty(recipes) == nil then
         elseif type == "mixableRecipes" and not table.isempty(recipes) then
             do
             do
                 for n, recipe in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
Строка 413: Строка 413:
                 end
                 end
             end
             end
         elseif type == "sliceableRecipes" and not table.isempty(recipes) == nil then
         elseif type == "sliceableRecipes" and not table.isempty(recipes) then
             do
             do
                 for n, recipe in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
Строка 421: Строка 421:
                 end
                 end
             end
             end
         elseif type == "grindableRecipes" and not table.isempty(recipes) == nil then
         elseif type == "grindableRecipes" and not table.isempty(recipes) then
             do
             do
                 for n, recipe in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
Строка 429: Строка 429:
                 end
                 end
             end
             end
         elseif type == "heatableRecipes" and not table.isempty(recipes) == nil then
         elseif type == "heatableRecipes" and not table.isempty(recipes) then
             do
             do
                 for n, recipe in pairs(recipes) do
                 for n, recipe in pairs(recipes) do
Строка 437: Строка 437:
                 end
                 end
             end
             end
         elseif type == "toolmadeRecipes" and not table.isempty(recipes) == nil then
         elseif type == "toolmadeRecipes" and not table.isempty(recipes) then
             do
             do
                 for n, recipe in pairs(recipes) do
                 for n, recipe in pairs(recipes) do