diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index df4b59a05..4e63a02e0 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1547,10 +1547,10 @@ minetest.set_mapgen_params(MapgenParams) ^ Leave field unset to leave that parameter unchanged ^ flags contains a comma-delimited string of flags to set, or if the prefix "no" is attached, clears instead. ^ flags is in the same format and has the same options as 'mg_flags' in minetest.conf -minetest.set_noiseparam_defaults({np1=NoiseParams, np2= NoiseParams, ...}) -^ Sets the default value of a noiseparam setting -^ Takes a table as an argument that maps one or more setting names to NoiseParams structures -^ Possible setting names consist of any NoiseParams setting exposed through the global settings +minetest.set_noiseparams(name, noiseparams, set_default) +^ Sets the noiseparams setting of 'name' to the noiseparams table specified in 'noiseparams'. +^ 'set_default', is an optional boolean (default of true) that specifies whether the setting +^ should be applied to the default config or current active config minetest.clear_objects() ^ clear all objects in the environments minetest.line_of_sight(pos1, pos2, stepsize) -> true/false, pos |