diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-06-19 16:30:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-19 16:30:26 +0200 |
commit | 6eb03c135f17f05d48dd13fe8957bfe0f9654b00 (patch) | |
tree | 52ba1f16498adcbe836a9f0cb1d7237ad28114e2 /doc/lua_api.txt | |
parent | 071736ba3f99c9827af074bed3b3ff84c05e0d51 (diff) | |
download | minetest-6eb03c135f17f05d48dd13fe8957bfe0f9654b00.tar.gz minetest-6eb03c135f17f05d48dd13fe8957bfe0f9654b00.tar.bz2 minetest-6eb03c135f17f05d48dd13fe8957bfe0f9654b00.zip |
find_nodes_in_area: Extend maximal count to U32_MAX (#5277)
Extend documentation, limit area volume
Remove u16 count limitation
* Prevent integer overflow, replace minp/maxp with pos1/pos2
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 28067eef1..a3413221b 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2465,12 +2465,13 @@ and `minetest.auth_reload` call the authetification handler. * `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"` * `search_center` is an optional boolean (default: `false`) If true `pos` is also checked for the nodes -* `minetest.find_nodes_in_area(minp, maxp, nodenames)`: returns a list of positions - * returns as second value a table with the count of the individual nodes found +* `minetest.find_nodes_in_area(pos1, pos2, nodenames)`: returns a list of positions * `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"` -* `minetest.find_nodes_in_area_under_air(minp, maxp, nodenames)`: returns a list of positions - * returned positions are nodes with a node air above + * First return value: Table with all node positions + * Second return value: Table with the count of each node with the node name as index +* `minetest.find_nodes_in_area_under_air(pos1, pos2, nodenames)`: returns a list of positions * `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"` + * Return value: Table with all node positions with a node air above * `minetest.get_perlin(noiseparams)` * `minetest.get_perlin(seeddiff, octaves, persistence, scale)` * Return world-specific perlin noise (`int(worldseed)+seeddiff`) |