mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +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:
		| @@ -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 = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev