mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
dont override already declined components with basic comps
This commit is contained in:
parent
c80ea35060
commit
6f41f70803
@ -15,9 +15,13 @@ M.comps = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
local register_basic_components = function ()
|
local function register_basic_components()
|
||||||
for k, v in pairs(M.comps) do
|
for k, v in pairs(M.comps) do
|
||||||
M.register(k, v)
|
if not _factory["new_" .. k] then
|
||||||
|
M.register(k, v)
|
||||||
|
else
|
||||||
|
log("Basic component", k, "already registered")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user