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.lua18
1 files changed, 14 insertions, 4 deletions
diff --git a/worldedit_commands/cuboidapi.lua b/worldedit_commands/cuboidapi.lua
index d91b071..ce20761 100644
--- a/worldedit_commands/cuboidapi.lua
+++ b/worldedit_commands/cuboidapi.lua
@@ -215,13 +215,23 @@ worldedit.translate_direction = function(name, direction)
end
if direction == "front" then
- resaxis = axis
- resdir = dir
+ if axis == "y" then
+ resaxis = nil
+ resdir = nil
+ else
+ resaxis = axis
+ resdir = dir
+ end
end
if direction == "back" then
- resaxis = axis
- resdir = -dir
+ if axis == "y" then
+ resaxis = nil
+ resdir = nil
+ else
+ resaxis = axis
+ resdir = -dir
+ end
end
if direction == "left" then