mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 02:00:39 +01:00
Fix rotate in worldedit GUI
This commit is contained in:
parent
edd27636a6
commit
4918610c43
@ -461,8 +461,8 @@ worldedit.register_gui_handler("worldedit_gui_pyramid", function(name, fields)
|
|||||||
local n = worldedit.normalize_nodename(gui_nodename1[name])
|
local n = worldedit.normalize_nodename(gui_nodename1[name])
|
||||||
if n then
|
if n then
|
||||||
execute_worldedit_command(submit, name,
|
execute_worldedit_command(submit, name,
|
||||||
axis_values[gui_axis1[name]] .. " " .. gui_distance1[name] ..
|
string.format("%s %s %s", axis_values[gui_axis1[name]],
|
||||||
" " .. n)
|
gui_distance1[name], n))
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -691,7 +691,7 @@ worldedit.register_gui_handler("worldedit_gui_rotate", function(name, fields)
|
|||||||
worldedit.show_page(name, "worldedit_gui_rotate")
|
worldedit.show_page(name, "worldedit_gui_rotate")
|
||||||
|
|
||||||
execute_worldedit_command("rotate", name,
|
execute_worldedit_command("rotate", name,
|
||||||
axis_values[gui_axis1[name]] .. angle_values[gui_angle[name]])
|
axis_values[gui_axis1[name]] .. " " .. angle_values[gui_angle[name]])
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user