allow random_facedir parameter during mapgen call
Merge branch 'api-tweak'