diff options
author | SmallJoker <mk939@ymail.com> | 2017-01-02 15:17:28 +0100 |
---|---|---|
committer | sapier <sapier at gmx dot net> | 2017-01-28 16:38:46 +0100 |
commit | 79d752ba4f6f0197627cc20f99b2540f63b6dc88 (patch) | |
tree | 7f73a72e0c777f25552f6e572797b9c9f9d38472 /doc | |
parent | 814ee971f70a8ef1fa4a470bcf385300686e9e70 (diff) | |
download | minetest-79d752ba4f6f0197627cc20f99b2540f63b6dc88.tar.gz minetest-79d752ba4f6f0197627cc20f99b2540f63b6dc88.tar.bz2 minetest-79d752ba4f6f0197627cc20f99b2540f63b6dc88.zip |
from_table: Fix crash for missing inventory or field
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ff745c1c2..9a1cb6bac 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2781,8 +2781,9 @@ Can be gotten via `minetest.get_meta(pos)`. * `get_inventory()`: returns `InvRef` * `to_table()`: returns `nil` or `{fields = {...}, inventory = {list1 = {}, ...}}` * `from_table(nil or {})` - * to clear metadata, use from_table(nil) + * Any non-table value will clear the metadata * See "Node Metadata" + * returns `true` on success ### `NodeTimerRef` Node Timers: a high resolution persistent per-node timer. |