mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 19:20:29 +00:00
Include standard Lua libraries in package.loaded
PUC Lua includes all builtin libraries in the package.loaded table.
This commit is contained in:
parent
61b2ed36a9
commit
d19bc53cb4
@ -21,7 +21,15 @@ local function createShellEnv( sDir )
|
||||
tEnv[ "multishell" ] = multishell
|
||||
|
||||
local package = {}
|
||||
package.loaded = {}
|
||||
package.loaded = {
|
||||
_G = _G,
|
||||
bit32 = bit32,
|
||||
coroutine = coroutine,
|
||||
math = math,
|
||||
package = package,
|
||||
string = string,
|
||||
table = table,
|
||||
}
|
||||
package.path = "?;?.lua;?/init.lua"
|
||||
package.preload = {}
|
||||
package.loaders = {
|
||||
|
Loading…
Reference in New Issue
Block a user