1
0
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:
Wilma456 2017-09-12 16:44:22 +02:00
parent 1fdfcdb5f2
commit 5989d021c7
4 changed files with 18 additions and 1 deletions

View File

@ -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.
]]

View File

@ -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.
]]

View File

@ -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.
]]

View File

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