From 240380ff16bfb8dedb18b991315f0bacd937caf5 Mon Sep 17 00:00:00 2001 From: Daniel Sosa Date: Sat, 3 Jan 2015 20:20:27 -0600 Subject: Implement /inset and /shift --- worldedit_commands/cuboidapi.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'worldedit_commands/cuboidapi.lua') diff --git a/worldedit_commands/cuboidapi.lua b/worldedit_commands/cuboidapi.lua index 37194e4..d473571 100644 --- a/worldedit_commands/cuboidapi.lua +++ b/worldedit_commands/cuboidapi.lua @@ -65,14 +65,14 @@ worldedit.cuboid_shift = function(name, axis, amount) end if axis == 'x' then - pos1.x = pos1.x + amount - pos2.x = pos2.x + amount + worldedit.pos1[name].x = pos1.x + amount + worldedit.pos2[name].x = pos2.x + amount elseif axis == 'y' then - pos1.y = pos1.y + amount - pos2.y = pos2.y + amount + worldedit.pos1[name].y = pos1.y + amount + worldedit.pos2[name].y = pos2.y + amount elseif axis == 'z' then - pos1.z = pos1.z + amount - pos2.z = pos2.z + amount + worldedit.pos1[name].z = pos1.z + amount + worldedit.pos2[name].z = pos2.z + amount else return false, "invalid axis" end -- cgit v1.2.3