1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 18:20:38 +01:00

Fixed bug where unmodified axis used pos1 coords instead of pos2 coords.

This commit is contained in:
Anthony Zhang 2013-02-17 14:11:55 -05:00
parent 4a98773025
commit 7eb102181b

View File

@ -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