summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authoryou <ovvv@web.de>2018-02-05 15:17:10 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-02-05 15:17:10 +0100
commit87e08b1b3af097e5ba86d31179e58fe38477fe15 (patch)
tree3f031735c75e0062c643d2c6f7e276bb4b2d06b5 /doc
parentb7ff40eea22488a240aeaeb393922d3c8d23a9b5 (diff)
downloadminetest-87e08b1b3af097e5ba86d31179e58fe38477fe15.tar.gz
minetest-87e08b1b3af097e5ba86d31179e58fe38477fe15.tar.bz2
minetest-87e08b1b3af097e5ba86d31179e58fe38477fe15.zip
Add minetest.is_player (#7013)
* Add minetest.is_player * First use for is_player
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 8be01ff3d..5baa098e2 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2753,9 +2753,9 @@ and `minetest.auth_reload` call the authentication handler.
* Set node on all positions set in the first argument.
* e.g. `minetest.bulk_set_node({{x=0, y=1, z=1}, {x=1, y=2, z=2}}, {name="default:stone"})`
* For node specification or position syntax see `minetest.set_node` call
- * Faster than set_node due to single call, but still considerably slower than
+ * Faster than set_node due to single call, but still considerably slower than
Voxel Manipulators (LVM) for large numbers of nodes.
- Unlike LVMs, this will call node callbacks. It also allows setting nodes in spread out
+ Unlike LVMs, this will call node callbacks. It also allows setting nodes in spread out
positions which would cause LVMs to waste memory.
For setting a cube, this is 1.3x faster than set_node whereas LVM is 20x faster.
* `minetest.swap_node(pos, node)`
@@ -3329,6 +3329,7 @@ These functions return the leftover itemstack.
### Misc.
* `minetest.get_connected_players()`: returns list of `ObjectRefs`
+* `minetest.is_player(o)`: boolean, whether `o` is a player
* `minetest.player_exists(name)`: boolean, whether player exists (regardless of online status)
* `minetest.hud_replace_builtin(name, hud_definition)`
* Replaces definition of a builtin hud element