diff options
author | Diego Martinez <kaeza@users.sf.net> | 2016-02-09 21:46:22 -0300 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-02-11 04:23:17 +0000 |
commit | 13dd7959dbb62ca9327062181d7c4f04b469c38c (patch) | |
tree | d3db1e8ed2ecc0795aa09019dd06201a342ec8ba /doc | |
parent | 0f03547b033690932707b2dde1ce3eeb09ddcf7e (diff) | |
download | minetest-13dd7959dbb62ca9327062181d7c4f04b469c38c.tar.gz minetest-13dd7959dbb62ca9327062181d7c4f04b469c38c.tar.bz2 minetest-13dd7959dbb62ca9327062181d7c4f04b469c38c.zip |
Initialize facedir and wallmounted tables only once.
This makes the functions a bit faster since they don't
have to recreate the tables every invocation, and makes
the code more readable.
Also, document `wallmounted_to_dir`.
The function was implemented but not documented in `lua_api.txt`.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5f4e06423..d9a8bea97 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2153,6 +2153,8 @@ and `minetest.auth_reload` call the authetification handler. * Convert a facedir back into a vector aimed directly out the "back" of a node * `minetest.dir_to_wallmounted(dir)` * Convert a vector to a wallmounted value, used for `paramtype2="wallmounted"` +* `minetest.wallmounted_to_dir(wallmounted)` + * Convert a wallmounted value back into a vector aimed directly out the "back" of a node * `minetest.get_node_drops(nodename, toolname)` * Returns list of item names. * **Note**: This will be removed or modified in a future version. |