diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-28 22:50:08 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-28 22:50:08 +0300 |
commit | a3a400992e987307d743028b60237ef0bcae533a (patch) | |
tree | 65fe8c39cd58338a41a29e15933c4f579bd74a54 /doc | |
parent | 68625b047f1fdebba747a83630163af99faf17e3 (diff) | |
download | minetest-a3a400992e987307d743028b60237ef0bcae533a.tar.gz minetest-a3a400992e987307d743028b60237ef0bcae533a.tar.bz2 minetest-a3a400992e987307d743028b60237ef0bcae533a.zip |
Add EnvRef:set_node()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 68fbcee8c..a8386406e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -504,8 +504,9 @@ Class reference ---------------- EnvRef: basically ServerEnvironment and ServerMap combined. methods: -- add_node(pos, node) -- remove_node(pos) +- set_node(pos, node) +- add_node(pos, node): alias set_node(pos, node) +- remove_node(pos): equivalent to set_node(pos, "air") - get_node(pos) ^ Returns {name="ignore", ...} for unloaded area - get_node_or_nil(pos) |