]> git.lizzy.rs Git - worldedit.git/commitdiff
Unbreak //move (closes #188)
authorsfan5 <sfan5@live.de>
Fri, 20 Dec 2019 19:29:41 +0000 (20:29 +0100)
committersfan5 <sfan5@live.de>
Fri, 20 Dec 2019 19:29:41 +0000 (20:29 +0100)
worldedit_commands/init.lua

index 4fcb40afc66587dc3a6ff1e0b1c68082984294db..0ca4cfa0abafa10b3607afcbebcd87a445e05d84 100644 (file)
@@ -939,6 +939,7 @@ worldedit.register_command("move", {
                        amount = amount * sign\r
                end\r
 \r
+               local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name]\r
                local count = worldedit.move(pos1, pos2, axis, amount)\r
 \r
                pos1[axis] = pos1[axis] + amount\r