1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-28 06:12:00 +02:00

Fix wand tool causing pos1/pos2 aliasing

fixes #245
This commit is contained in:
sfan5
2024-04-20 12:51:05 +02:00
parent 469c3bf70b
commit a713efe051
2 changed files with 4 additions and 2 deletions

View File

@ -64,6 +64,8 @@ worldedit.cuboid_shift = function(name, axis, amount)
return false, "undefined cuboid"
end
assert(not rawequal(pos1, pos2)) -- vectors must not alias
if axis == 'x' then
worldedit.pos1[name].x = pos1.x + amount
worldedit.pos2[name].x = pos2.x + amount