mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 11:10:29 +00:00
Add folder /rom/modules
This commit is contained in:
parent
1fdfcdb5f2
commit
5989d021c7
@ -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,
|
||||
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.preload = {}
|
||||
package.loaders = {
|
||||
|
Loading…
Reference in New Issue
Block a user