lualoader: config: fix module enabled check
A last minute rewrite left this logically wrong; if it's present in modules_blacklist, then we do not load it.
This commit is contained in:
parent
6f139d796f
commit
10aeb6cdab
@ -718,7 +718,7 @@ function config.isModuleEnabled(modname)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local blacklist = getBlacklist()
|
local blacklist = getBlacklist()
|
||||||
return blacklist[modname]
|
return not blacklist[modname]
|
||||||
end
|
end
|
||||||
|
|
||||||
hook.registerType("config.loaded")
|
hook.registerType("config.loaded")
|
||||||
|
Loading…
Reference in New Issue
Block a user