Модуль:Prototypes/Хранилище/Предмет: различия между версиями

мНет описания правки
мНет описания правки
Строка 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(containers.entity_storage.children) do
             local children = containers.entity_storage.children
                if child.tableId then
            if children then
                    result = result .. getTableOutput(child.tableId)
                for _, child in ipairs(children) do
                elseif child.id then
                    if child.tableId then
                    result = result .. formatContent(child)
                        result = result .. getTableOutput(child.tableId)
                elseif child["!type"] == "GroupSelector" then
                    elseif child.id then
                    result = result .. '<div class="together">'
                        result = result .. formatContent(child)
                    result = result .. getContentsOutput(child.children)
                    elseif child["!type"] == "GroupSelector" then
                    result = result .. '</div>'
                        result = result .. '<div class="together">'
                        result = result .. getContentsOutput(child.children)
                        result = result .. '</div>'
                    end
                 end
                 end
             end
             end