return "z", dir.z > 0 and 1 or -1\r
end\r
\r
-function worldedit.mkdir(path)\r
+local function mkdir(path)\r
if minetest.mkdir then\r
minetest.mkdir(path)\r
else\r
\r
local path = minetest.get_worldpath() .. "/schems"\r
-- Create directory if it does not already exist\r
- worldedit.mkdir(path)\r
+ mkdir(path)\r
\r
local filename = path .. "/" .. param .. ".we"\r
local file, err = io.open(filename, "wb")\r
\r
local path = minetest.get_worldpath() .. "/schems"\r
-- Create directory if it does not already exist\r
- worldedit.mkdir(path)\r
+ mkdir(path)\r
\r
local filename = path .. "/" .. param .. ".mts"\r
local ret = minetest.create_schematic(worldedit.pos1[name],\r