mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 00:14:52 +09:00
3rd attempt at fixing upvalues
This commit is contained in:
1 parent
9f38f6a0f1
commit
f14c50852c
7 files changed
+14
-16
No files matched your search
@@ -280,7 +280,6 @@ function Server._thread:create(obj)
|
||||
obj._env._env = true
|
||||
obj._env._ENV = nil -- provents infinte recusion
|
||||
-- removes any modules from the _env to save space in global (less time to serizle)
|
||||
obj._env.setmetatable = setmetatable
|
||||
obj._env._modules = {}
|
||||
for name,value in pairs(obj._env) do if is_type(value,'table') and value._module_name and loaded_modules[value._module_name] == value then obj._env._modules[name] = value._module_name obj._env[name] = nil end end
|
||||
setmetatable(obj._env,_env_metatable)
|
||||
|
||||
Reference in new issue
Block a user