From 17c1e3887c7af21983ec148d965857829f62e452 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 9 Sep 2012 21:44:30 -0700 Subject: [PATCH] allow multiple //moves --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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, })