From 8feaf8a21d71c9587722d5e1004a1eea5e1c78a7 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 13 Nov 2019 20:49:25 +0100 Subject: [PATCH] Fix area clearing step of negative //move's fixes #187 --- worldedit/manipulations.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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