diff options
author | Anthony Zhang <azhang9@gmail.com> | 2013-02-17 14:11:55 -0500 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2013-02-17 14:11:55 -0500 |
commit | 7eb102181b9e782c14074dfb1599d4057ef2b0d3 (patch) | |
tree | f321dc82813278873486add178bbd9ac11c340c3 /worldedit | |
parent | 4a987730253e85ba2cf39185eda61896e51abaf4 (diff) |
Fixed bug where unmodified axis used pos1 coords instead of pos2 coords.
Diffstat (limited to 'worldedit')
-rw-r--r-- | worldedit/manipulations.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index c6bb9dd..a38467d 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -240,7 +240,7 @@ worldedit.transpose = function(pos1, pos2, axis1, axis2) end
--calculate the new position 2 after transposition
- local newpos2 = {x=pos1.x, y=pos1.y, z=pos1.z}
+ local newpos2 = {x=pos2.x, y=pos2.y, z=pos2.z}
newpos2[axis1] = pos1[axis1] + extent2
newpos2[axis2] = pos1[axis2] + extent1
|