diff options
author | Anthony <azhang9@gmail.com> | 2012-09-10 17:06:34 -0700 |
---|---|---|
committer | Anthony <azhang9@gmail.com> | 2012-09-10 17:06:34 -0700 |
commit | 8102eb982e2957a59be749ec0ab867293c5ff721 (patch) | |
tree | e35b1a60323650cf9df36a6e20f4a6c87ddc00ee /init.lua | |
parent | a429e104a24b4d218733056dff4d681ec76036da (diff) | |
parent | 93100a20be1cd2109c62b053ba3e22cb9f999983 (diff) |
Merge pull request #11 from khonkhortisan/master
Allow multiple //moves
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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,
})
|