mirror of
https://github.com/appgurueu/modlib.git
synced 2024-12-22 21:32:27 +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 ""
|
||||
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)
|
||||
return table.concat(path, dir_delim)
|
||||
|
Loading…
Reference in New Issue
Block a user