mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 05:12:58 +00:00 
			
		
		
		
	Add folder /rom/modules
This commit is contained in:
		| @@ -0,0 +1,4 @@ | |||||||
|  | --[[ | ||||||
|  | Alright then, don't ignore me. This file is to ensure the existence of the "modules/command" folder. | ||||||
|  | You can use this folder to add modules who can be loaded with require() to your Resourcepack. | ||||||
|  | ]] | ||||||
| @@ -0,0 +1,4 @@ | |||||||
|  | --[[ | ||||||
|  | Alright then, don't ignore me. This file is to ensure the existence of the "modules/main" folder. | ||||||
|  | You can use this folder to add modules who can be loaded with require() to your Resourcepack. | ||||||
|  | ]] | ||||||
| @@ -0,0 +1,4 @@ | |||||||
|  | --[[ | ||||||
|  | Alright then, don't ignore me. This file is to ensure the existence of the "modules/turtle" folder. | ||||||
|  | You can use this folder to add modules who can be loaded with require() to your Resourcepack. | ||||||
|  | ]] | ||||||
| @@ -30,7 +30,12 @@ local function createShellEnv( sDir ) | |||||||
|         string = string, |         string = string, | ||||||
|         table = table, |         table = table, | ||||||
|     } |     } | ||||||
|     package.path = "?;?.lua;?/init.lua" |     package.path = "?;?.lua;?/init.lua;/rom/modules/main/?;/rom/modules/main/?.lua;/rom/modules/main/?/init.lua" | ||||||
|  |     if turtle then | ||||||
|  |         package.path = package.path..";/rom/modules/turtle/?;/rom/modules/turtle/?.lua;/rom/modules/turtle/?/init.lua" | ||||||
|  |     elseif command then | ||||||
|  |         package.path = package.path..";/rom/modules/command/?;/rom/modules/command/?.lua;/rom/modules/command/?/init.lua" | ||||||
|  |     end | ||||||
|     package.config = "/\n;\n?\n!\n-" |     package.config = "/\n;\n?\n!\n-" | ||||||
|     package.preload = {} |     package.preload = {} | ||||||
|     package.loaders = { |     package.loaders = { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wilma456
					Wilma456