Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 85: | Строка 85: | ||
local containers = item.EntityTableContainerFill.containers | local containers = item.EntityTableContainerFill.containers | ||
if containers.entity_storage then | if containers.entity_storage then | ||
for _, child in ipairs( | local children = containers.entity_storage.children | ||
if children then | |||
for _, child in ipairs(children) do | |||
if child.tableId then | |||
result = result .. getTableOutput(child.tableId) | |||
elseif child.id then | |||
result = result .. formatContent(child) | |||
elseif child["!type"] == "GroupSelector" then | |||
result = result .. '<div class="together">' | |||
result = result .. getContentsOutput(child.children) | |||
result = result .. '</div>' | |||
end | |||
end | end | ||
end | end | ||