mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-26 02:30:40 +01:00
Fix //shift with absolute axis (x/y/z)
This commit is contained in:
parent
f72abdb766
commit
0b68b2aec6
@ -114,10 +114,12 @@ minetest.register_chatcommand("/shift", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local axis, dir
|
local axis, dir
|
||||||
if direction ~= "?" then
|
if direction == "x" or direction == "y" or direction == "z" then
|
||||||
axis, dir = worldedit.translate_direction(name, direction)
|
axis, dir = direction, 1
|
||||||
else
|
elseif direction == "?" then
|
||||||
axis, dir = worldedit.player_axis(name)
|
axis, dir = worldedit.player_axis(name)
|
||||||
|
else
|
||||||
|
axis, dir = worldedit.translate_direction(name, direction)
|
||||||
end
|
end
|
||||||
|
|
||||||
if axis == nil or dir == nil then
|
if axis == nil or dir == nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user