summaryrefslogtreecommitdiff
path: root/worldedit_commands
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2014-12-29 18:16:36 -0500
committerAnthony Zhang <azhang9@gmail.com>2014-12-29 18:16:36 -0500
commit7f580611f564bc4d67c3b77fc4866b4afb2fb98a (patch)
treeff7d88e916c7543718e65441e78f66a27413c9a4 /worldedit_commands
parent47990685514ebdfe114977c33e08c20511f1f0a7 (diff)
Fix some warnings.
Diffstat (limited to 'worldedit_commands')
-rw-r--r--worldedit_commands/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua
index 734150a..9daa809 100644
--- a/worldedit_commands/init.lua
+++ b/worldedit_commands/init.lua
@@ -13,7 +13,7 @@ if minetest.place_schematic then
end
dofile(minetest.get_modpath("worldedit_commands") .. "/mark.lua")
-dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua")
+dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua"); safe_region = safe_region or function(callback) return callback end
local get_position = function(name) --position 1 retrieval function for when not using `safe_region`
local pos1 = worldedit.pos1[name]
@@ -828,7 +828,7 @@ minetest.register_chatcommand("/suppress", {
local node = get_node(name, param)
local count = worldedit.suppress(worldedit.pos1[name], worldedit.pos2[name], node)
worldedit.player_notify(name, count .. " nodes suppressed")
- end, check_set),
+ end, check_region),
})
minetest.register_chatcommand("/highlight", {
@@ -839,7 +839,7 @@ minetest.register_chatcommand("/highlight", {
local node = get_node(name, param)
local count = worldedit.highlight(worldedit.pos1[name], worldedit.pos2[name], node)
worldedit.player_notify(name, count .. " nodes highlighted")
- end, check_set),
+ end, check_region),
})
minetest.register_chatcommand("/restore", {