Skip to content

Commit

Permalink
Fix area clearing step of negative //move's
Browse files Browse the repository at this point in the history
fixes #187
  • Loading branch information
sfan5 committed Nov 13, 2019
1 parent 5bab991 commit 8feaf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worldedit/manipulations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function worldedit.move(pos1, pos2, axis, amount)
nuke_area({x=0, y=0, z=0}, leftover)
else
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)
end
end
Expand Down

0 comments on commit 8feaf8a

Please sign in to comment.