mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 02:00:39 +01:00
parent
5bab991e0b
commit
8feaf8a21d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user