We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f72abdb commit 0b68b2aCopy full SHA for 0b68b2a
worldedit_commands/cuboid.lua
@@ -114,10 +114,12 @@ minetest.register_chatcommand("/shift", {
114
end
115
116
local axis, dir
117
- if direction ~= "?" then
118
- axis, dir = worldedit.translate_direction(name, direction)
119
- else
+ if direction == "x" or direction == "y" or direction == "z" then
+ axis, dir = direction, 1
+ elseif direction == "?" then
120
axis, dir = worldedit.player_axis(name)
121
+ else
122
+ axis, dir = worldedit.translate_direction(name, direction)
123
124
125
if axis == nil or dir == nil then
@@ -236,4 +238,4 @@ minetest.register_chatcommand("/contract", {
236
238
worldedit.marker_update(name)
237
239
end,
240
}
-)
241
+)
0 commit comments