Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) FUCKING LUA |
||
| Строка 376: | Строка 376: | ||
for type, ids in pairs(idtable) do | for type, ids in pairs(idtable) do | ||
-- INTRUDER ALERT: SHITCODE IS IN THE BASE | -- INTRUDER ALERT: SHITCODE IS IN THE BASE | ||
if type == "microwaveRecipes" then | if type == "microwaveRecipes" and not next(ids) == nil then | ||
do | do | ||
for id in pairs(ids) do | for id in pairs(ids) do | ||
| Строка 383: | Строка 383: | ||
end | end | ||
end | end | ||
elseif type == "mixableRecipes" then | elseif type == "mixableRecipes" and not next(ids) == nil then | ||
do | do | ||
for id in pairs(ids) do | for id in pairs(ids) do | ||
| Строка 389: | Строка 389: | ||
end | end | ||
end | end | ||
elseif type == "sliceableRecipes" then | elseif type == "sliceableRecipes" and not next(ids) == nil then | ||
do | do | ||
for id in pairs(ids) do | for id in pairs(ids) do | ||
| Строка 395: | Строка 395: | ||
end | end | ||
end | end | ||
elseif type == "grindableRecipes" then | elseif type == "grindableRecipes" and not next(ids) == nil then | ||
do | do | ||
for id in pairs(ids) do | for id in pairs(ids) do | ||
| Строка 401: | Строка 401: | ||
end | end | ||
end | end | ||
elseif type == "heatableRecipes" then | elseif type == "heatableRecipes" and not next(ids) == nil then | ||
do | do | ||
for id in pairs(ids) do | for id in pairs(ids) do | ||
| Строка 407: | Строка 407: | ||
end | end | ||
end | end | ||
elseif type == "toolmadeRecipes" then | elseif type == "toolmadeRecipes" and not next(ids) == nil then | ||
do | do | ||
for id in pairs(ids) do | for id in pairs(ids) do | ||