summaryrefslogtreecommitdiff
path: root/worldedit_commands/init.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-05-16 19:52:11 -0400
committerShadowNinja <shadowninja@minetest.net>2015-05-16 19:52:48 -0400
commit163dffccb38a1f4e37866d7232cecfb5238f7af7 (patch)
tree0d722faca345e1cb43d504d4ede90e8b0fdb6834 /worldedit_commands/init.lua
parent6b2fe397e6649fd64ad359e229e5a5e4eb0bafcc (diff)
Fix leaking {safe,check}_region
Diffstat (limited to 'worldedit_commands/init.lua')
-rw-r--r--worldedit_commands/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua
index 692b0ec..0fa8e38 100644
--- a/worldedit_commands/init.lua
+++ b/worldedit_commands/init.lua
@@ -11,8 +11,7 @@ if minetest.place_schematic then
end
dofile(minetest.get_modpath("worldedit_commands") .. "/mark.lua")
-dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua")
-safe_region = rawget(_G, "safe_region") or function(callback) return callback end
+local safe_region, check_region = dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua")
local function get_position(name) --position 1 retrieval function for when not using `safe_region`
local pos1 = worldedit.pos1[name]