summaryrefslogtreecommitdiff
path: root/worldedit_commands/cuboidapi.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit_commands/cuboidapi.lua')
-rw-r--r--worldedit_commands/cuboidapi.lua12
1 files changed, 6 insertions, 6 deletions
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