summaryrefslogtreecommitdiff
path: root/worldedit_commands/cuboidapi.lua
diff options
context:
space:
mode:
authorDaniel Sosa <sosa.daniel23@gmail.com>2015-01-03 20:20:27 -0600
committerDaniel Sosa <sosa.daniel23@gmail.com>2016-07-03 21:44:02 -0500
commit240380ff16bfb8dedb18b991315f0bacd937caf5 (patch)
tree01d53a2b13f03f4ed8c40ba01b512d923b9ece57 /worldedit_commands/cuboidapi.lua
parent8d213d32a092ec03dca17ada9217a87656bd2b18 (diff)
Implement /inset and /shift
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