diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/configmanager.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua index f04c5575..299374ec 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -116,12 +116,14 @@ do env.host = env.Host; function env.Component(name) + set(name, "core", "component_module", "component"); + -- Don't load the global modules by default + set(name, "core", "modules_enable", false); + rawset(env, "__currenthost", name); + return function (module) if type(module) == "string" then set(name, "core", "component_module", module); - -- Don't load the global modules by default - set(name, "core", "modules_enable", false); - rawset(env, "__currenthost", name); end end end |