From: sfan5 Date: Wed, 13 Nov 2019 19:49:25 +0000 (+0100) Subject: Fix area clearing step of negative //move's X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8feaf8a21d71c9587722d5e1004a1eea5e1c78a7;p=worldedit.git Fix area clearing step of negative //move's fixes #187 --- diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index 01fb99a..3bad0dd 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -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