Prevent global access warning

This commit is contained in:
Lars Mueller 2021-11-06 18:35:29 +01:00
parent ff9d1c9d95
commit 5cf756245b

@ -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)