Fix Orient in WorldEdit GUI

This commit is contained in:
sfan5 2016-01-05 12:24:06 +01:00
parent 3d30588a68
commit 3aa315f134

View File

@ -497,7 +497,7 @@ worldedit.register_gui_handler("worldedit_gui_orient", function(name, fields)
if fields.worldedit_gui_orient_submit then
gui_angle[name] = angle_indices[fields.worldedit_gui_orient_angle]
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
end
return false