summaryrefslogtreecommitdiff
path: root/server/src/core/library.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/library.lua')
-rw-r--r--server/src/core/library.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/core/library.lua b/server/src/core/library.lua
index d9ac969a..be1d74b8 100644
--- a/server/src/core/library.lua
+++ b/server/src/core/library.lua
@@ -117,7 +117,13 @@ local function insertCustom(tbl, key, value, libName)
end
local function isEnableGlobal(libName)
- return libName:sub(1, 1) == '@'
+ if config.config.runtime.library[libName] then
+ return true
+ end
+ if libName:sub(1, 1) == '@' then
+ return true
+ end
+ return false
end
local function mergeSource(alllibs, name, lib, libName)