mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 09:13:53 +01:00
Prevent global access warning
This commit is contained in:
parent
ff9d1c9d95
commit
5cf756245b
2
init.lua
2
init.lua
@ -81,7 +81,7 @@ if not minetest then
|
|||||||
parent_dir = init_path and init_path:match"^.[/\\]" or ""
|
parent_dir = init_path and init_path:match"^.[/\\]" or ""
|
||||||
end
|
end
|
||||||
|
|
||||||
local dir_delim = rawget(_G, "DIR_DELIM") or (package and package.config and assert(package.config:match("^(.-)[\r\n]"))) or "/"
|
local dir_delim = rawget(_G, "DIR_DELIM") or (rawget(_G, "package") and package.config and assert(package.config:match("^(.-)[\r\n]"))) or "/"
|
||||||
|
|
||||||
local function concat_path(path)
|
local function concat_path(path)
|
||||||
return table.concat(path, dir_delim)
|
return table.concat(path, dir_delim)
|
||||||
|
Loading…
Reference in New Issue
Block a user