mods that hopefully work for a TechAge-based pack
This commit is contained in:
1 parent
4e6b08d194
commit
c27db2a537
6234 files changed
+375578
No files matched your search
@@ -0,0 +1,19 @@
|
||||
if yl_canned_food_mtg.settings.data_source ~= "json" then
|
||||
return false
|
||||
end
|
||||
|
||||
local mkdir = minetest.mkdir
|
||||
local save_path = yl_canned_food_mtg.settings.save_path
|
||||
|
||||
local function run_once()
|
||||
local path = yl_canned_food_mtg.worldpath .. DIR_DELIM .. save_path
|
||||
local file = io.open(path, "r")
|
||||
if not file then
|
||||
mkdir(path)
|
||||
else
|
||||
file:close()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
run_once()
|
||||
Reference in new issue
Block a user