Модуль:Сущность: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 286: | Строка 286: | ||
for name in string.gmatch(id, "[^,]+") do | for name in string.gmatch(id, "[^,]+") do | ||
local n = trim(name) | local n = trim(name) | ||
if n ~= "" then | if n ~= "" and n ~= id then | ||
if componentDefs[n] ~= nil then | if componentDefs[n] ~= nil then | ||
foundComponents[n] = true | foundComponents[n] = true | ||
elseif prototypeDefs[n] ~= nil then | elseif prototypeDefs[n] ~= nil then | ||
foundPrototypes[n] = true | foundPrototypes[n] = true | ||
end | end | ||
end | end | ||