From: Ezhh Date: Sat, 25 Nov 2017 23:18:50 +0000 (+0000) Subject: Improve documentation for player:set_attribute() X-Git-Tag: 0.4.17~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f1094475fd42bddc77c7e34265eb54bc2420cd0;p=oweals%2Fminetest.git Improve documentation for player:set_attribute() --- 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.