summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorKyle <kyle.kylina@gmail.com>2012-09-09 21:44:30 -0700
committerKyle <kyle.kylina@gmail.com>2012-09-09 21:44:30 -0700
commit17c1e3887c7af21983ec148d965857829f62e452 (patch)
treef6c0c3f52e051dee45352ff03ad5eb83b6fb8626 /init.lua
parenta429e104a24b4d218733056dff4d681ec76036da (diff)
allow multiple //moves
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index dcac756..1948bcf 100644
--- a/init.lua
+++ b/init.lua
@@ -323,6 +323,12 @@ minetest.register_chatcommand("/move", {
end
local count = worldedit.move(pos1, pos2, axis, tonumber(amount))
+
+ worldedit.pos1[name][axis] = worldedit.pos1[name][axis] + amount
+ worldedit.pos2[name][axis] = worldedit.pos2[name][axis] + amount
+ worldedit.mark_pos1(name)
+ worldedit.mark_pos2(name)
+
minetest.chat_send_player(name, count .. " nodes moved")
end,
})