17 lines
365 B
Lua
17 lines
365 B
Lua
local function run_once()
|
|
local dl = minetest.get_dir_list(yl_template.worldpath, true)
|
|
local create = true
|
|
|
|
for _, v in ipairs(dl) do
|
|
if v == yl_template.save_path then
|
|
create = false
|
|
end
|
|
end
|
|
|
|
if create then
|
|
minetest.mkdir(yl_template.worldpath .. DIR_DELIM .. yl_template.save_path)
|
|
end
|
|
end
|
|
|
|
run_once()
|