summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzhh <owlecho@live.com>2017-11-25 23:18:50 +0000
committerrubenwardy <rubenwardy@gmail.com>2017-11-25 23:18:50 +0000
commit76eb3f2b7ab3a88509d70f3bb936b850d5d83e86 (patch)
tree6511756c27bd1fca3d807d5fba933c4ce49e7384
parent637ea86069f1cf94f1fb4a32cec57b9b0529040a (diff)
downloadminetest-76eb3f2b7ab3a88509d70f3bb936b850d5d83e86.tar.gz
minetest-76eb3f2b7ab3a88509d70f3bb936b850d5d83e86.tar.bz2
minetest-76eb3f2b7ab3a88509d70f3bb936b850d5d83e86.zip
Improve documentation for player:set_attribute()
-rw-r--r--doc/lua_api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 5dbd8d497..b90a3974e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3594,7 +3594,7 @@ This is basically a reference to a C++ `ServerActiveObject`
* See Object Properties for more information
* `set_attribute(attribute, value)`:
* Sets an extra attribute with value on player.
- * `value` must be a string.
+ * `value` must be a string, or a number which will be converted to a string.
* If `value` is `nil`, remove attribute from player.
* `get_attribute(attribute)`:
* Returns value (a string) for extra attribute.