1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 03:54:20 -05:00

made the shell look at libraries in _G.libs as well as just _G

This commit is contained in:
XeonSquared 2019-12-20 17:48:25 +11:00
parent 200b99eb0c
commit 68130b80a6

View File

@ -21,6 +21,8 @@ setmetatable(shenv,{__index=function(_,k)
local fp = findPath(k)
if _G[k] then
return _G[k]
elseif _G.libs[k] then
return _G.libs[k]
elseif fp then
return function(...)
local tA = {...}