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

Нет описания правки
Нет описания правки
Строка 120: Строка 120:
         local direct = data[id]
         local direct = data[id]
         if direct ~= nil then
         if direct ~= nil then
            if type(direct) == "table" then
                local base = data["default"]
                if type(base) == "table" then
                    local merged = deep_copy(base)
                    deep_merge(merged, direct)
                    return merged
                end
            end
             return direct
             return direct
         end
         end