yl_template/setup.lua

17 lines
383 B
Lua
Raw Normal View History

2022-02-19 03:28:03 +00:00
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.settings.save_path then
2022-02-19 03:28:03 +00:00
create = false
end
end
if create then
minetest.mkdir(yl_template.worldpath .. DIR_DELIM .. yl_template.settings.save_path)
2022-02-19 03:28:03 +00:00
end
end
run_once()