remove semi colons from LuaSetup.lua
This commit is contained in:
@@ -44,8 +44,8 @@ local function runFolder(folder)
|
|||||||
local s = str:gsub("\\", "/")
|
local s = str:gsub("\\", "/")
|
||||||
|
|
||||||
if endsWith(str, ".lua") then
|
if endsWith(str, ".lua") then
|
||||||
print(s);
|
print(s)
|
||||||
dofile(s);
|
dofile(s)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -62,7 +62,7 @@ if SERVER then
|
|||||||
table.insert(modulePaths, (d .. "/Lua/?.lua"))
|
table.insert(modulePaths, (d .. "/Lua/?.lua"))
|
||||||
|
|
||||||
if File.DirectoryExists(d .. "/Lua/Autorun") then
|
if File.DirectoryExists(d .. "/Lua/Autorun") then
|
||||||
runFolder(d .. "/Lua/Autorun");
|
runFolder(d .. "/Lua/Autorun")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ if SERVER then
|
|||||||
table.insert(modulePaths, (d .. "/Lua/?.lua"))
|
table.insert(modulePaths, (d .. "/Lua/?.lua"))
|
||||||
|
|
||||||
if File.DirectoryExists(d .. "/Lua/Autorun") then
|
if File.DirectoryExists(d .. "/Lua/Autorun") then
|
||||||
runFolder(d .. "/Lua/Autorun");
|
runFolder(d .. "/Lua/Autorun")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -85,7 +85,7 @@ for _, d in pairs(File.GetDirectories("Mods")) do
|
|||||||
|
|
||||||
if File.DirectoryExists(d .. "/Lua/ForcedAutorun") then
|
if File.DirectoryExists(d .. "/Lua/ForcedAutorun") then
|
||||||
table.insert(modulePaths, (d .. "/Lua/?.lua"))
|
table.insert(modulePaths, (d .. "/Lua/?.lua"))
|
||||||
runFolder(d .. "/Lua/ForcedAutorun");
|
runFolder(d .. "/Lua/ForcedAutorun")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user