aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEzhh <owlecho@live.com>2017-11-25 23:18:50 +0000
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commit3f1094475fd42bddc77c7e34265eb54bc2420cd0 (patch)
tree9c94141ad34aa7d2fe0ea4a7558785bc6eb64608 /doc
parentf72ac42ca05d87571b6a5ca84f588c4f5566aa16 (diff)
downloadminetest-3f1094475fd42bddc77c7e34265eb54bc2420cd0.tar.gz
minetest-3f1094475fd42bddc77c7e34265eb54bc2420cd0.tar.bz2
minetest-3f1094475fd42bddc77c7e34265eb54bc2420cd0.zip
Improve documentation for player:set_attribute()
Diffstat (limited to 'doc')
-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 d2b70a667..a32eb34e3 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3331,7 +3331,7 @@ This is basically a reference to a C++ `ServerActiveObject`
* `11`: bubbles bar is not shown
* `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.