Skip to content

Commit 4bd5d56

Browse files
committedJun 1, 2015
Localize mkdir helper
1 parent 163dffc commit 4bd5d56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎worldedit_commands/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function worldedit.player_axis(name)
7070
return "z", dir.z > 0 and 1 or -1
7171
end
7272

73-
function worldedit.mkdir(path)
73+
local function mkdir(path)
7474
if minetest.mkdir then
7575
minetest.mkdir(path)
7676
else
@@ -895,7 +895,7 @@ minetest.register_chatcommand("/save", {
895895

896896
local path = minetest.get_worldpath() .. "/schems"
897897
-- Create directory if it does not already exist
898-
worldedit.mkdir(path)
898+
mkdir(path)
899899

900900
local filename = path .. "/" .. param .. ".we"
901901
local file, err = io.open(filename, "wb")
@@ -1063,7 +1063,7 @@ minetest.register_chatcommand("/mtschemcreate", {
10631063

10641064
local path = minetest.get_worldpath() .. "/schems"
10651065
-- Create directory if it does not already exist
1066-
worldedit.mkdir(path)
1066+
mkdir(path)
10671067

10681068
local filename = path .. "/" .. param .. ".mts"
10691069
local ret = minetest.create_schematic(worldedit.pos1[name],

0 commit comments

Comments
 (0)
Please sign in to comment.