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

Fix area clearing step of negative //move's

fixes #187
This commit is contained in:
sfan5 2019-11-13 20:49:25 +01:00
parent 5bab991e0b
commit 8feaf8a21d

View File

@ -301,7 +301,7 @@ function worldedit.move(pos1, pos2, axis, amount)
nuke_area({x=0, y=0, z=0}, leftover) nuke_area({x=0, y=0, z=0}, leftover)
else else
local top = {x=0, y=0, z=0} -- offset of the leftover slice from pos1 local top = {x=0, y=0, z=0} -- offset of the leftover slice from pos1
top[axis] = dim[axis] - 1 top[axis] = dim[axis] - math.abs(amount)
nuke_area(top, leftover) nuke_area(top, leftover)
end end
end end