From d50878d608fdea2be890ff75b93212f5bba1d6f8 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 9 Dec 2014 23:44:04 -0500 Subject: Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams --- doc/lua_api.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') 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 -- cgit v1.2.3