From 87f23b86473eaba24503550584c5ea100b98fc5b Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Thu, 16 Aug 2012 16:21:00 -0400 Subject: [PATCH] Fix //copy, //move, and //stack with negative amounts. --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index 7912b9e..625fafb 100644 --- a/functions.lua +++ b/functions.lua @@ -86,7 +86,7 @@ worldedit.copy = function(pos1, pos2, axis, amount) while pos.z <= pos2.z do local node = env:get_node(pos) local value = pos[axis] - pos[axis] = value - amount + pos[axis] = value + amount env:add_node(pos, node) pos[axis] = value pos.z = pos.z + 1 @@ -132,7 +132,7 @@ worldedit.move = function(pos1, pos2, axis, amount) local node = env:get_node(pos) env:remove_node(pos) local value = pos[axis] - pos[axis] = value - amount + pos[axis] = value + amount env:add_node(pos, node) pos[axis] = value pos.z = pos.z + 1