forked from mtcontrib/Minetest-WorldEdit
Fix Orient in WorldEdit GUI
This commit is contained in:
parent
3d30588a68
commit
3aa315f134
|
@ -497,7 +497,7 @@ worldedit.register_gui_handler("worldedit_gui_orient", function(name, fields)
|
||||||
if fields.worldedit_gui_orient_submit then
|
if fields.worldedit_gui_orient_submit then
|
||||||
gui_angle[name] = angle_indices[fields.worldedit_gui_orient_angle]
|
gui_angle[name] = angle_indices[fields.worldedit_gui_orient_angle]
|
||||||
worldedit.show_page(name, "worldedit_gui_orient")
|
worldedit.show_page(name, "worldedit_gui_orient")
|
||||||
minetest.chatcommands["/orient"].func(name, angle_values[gui_angle[name]])
|
minetest.chatcommands["/orient"].func(name, tostring(angle_values[gui_angle[name]]))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user