]> git.lizzy.rs Git - worldedit.git/commitdiff
Fix //move again
authorSfan5 <sfan5@live.de>
Mon, 20 May 2013 18:48:12 +0000 (20:48 +0200)
committerSfan5 <sfan5@live.de>
Mon, 20 May 2013 18:48:12 +0000 (20:48 +0200)
worldedit_commands/init.lua

index c90e855eadd0e0cc077346465031ea0c3d9f4ab3..79f58a1f00252596d7bbc24784a19c602bc31b66 100644 (file)
@@ -560,11 +560,8 @@ minetest.register_chatcommand("/move", {
                        amount = amount * sign\r
                end\r
 \r
-               local tenv = minetest.env\r
-               if worldedit.ENABLE_QUEUE then\r
-                       tenv = worldedit.quene_aliasenv\r
-               end\r
-               local count = worldedit.move(pos1, pos2, axis, tonumber(amount), tenv)\r
+               --Do NOT use the queue here, it'll mess it up\r
+               local count = worldedit.move(pos1, pos2, axis, tonumber(amount))\r
 \r
                pos1[axis] = pos1[axis] + amount\r
                pos2[axis] = pos2[axis] + amount\r