1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-01 01:23:30 +00:00

Merge pull request #255 from SquidDev-CC/feature/add-package-loaded

Include standard Lua libraries in package.loaded
This commit is contained in:
Daniel Ratcliffe 2017-05-18 00:20:46 +01:00 committed by GitHub
commit 757b1efd7e

View File

@ -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 = {