summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-09 23:44:04 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-09 23:44:04 -0500
commitd50878d608fdea2be890ff75b93212f5bba1d6f8 (patch)
tree46a7b42aa7c59f6fdfbae94c329ae4de9359b5e2 /doc/lua_api.txt
parentf2c18511a4a3c3cfdda3671d02f1b7468cb56405 (diff)
downloadminetest-d50878d608fdea2be890ff75b93212f5bba1d6f8.tar.gz
minetest-d50878d608fdea2be890ff75b93212f5bba1d6f8.tar.bz2
minetest-d50878d608fdea2be890ff75b93212f5bba1d6f8.zip
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt8
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