aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_env.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-02-12 19:49:48 +0100
committersfan5 <sfan5@live.de>2020-02-23 22:24:12 +0100
commit0b8d3f99a5424113178329e56c2ebe4b38fd2b46 (patch)
tree0533bd86aef3bbf1e871ef1558ff9de0109e7f08 /src/script/lua_api/l_env.h
parentc657fb343f120b7462f7ca580852636ad98b8ae0 (diff)
downloadminetest-0b8d3f99a5424113178329e56c2ebe4b38fd2b46.tar.gz
minetest-0b8d3f99a5424113178329e56c2ebe4b38fd2b46.tar.bz2
minetest-0b8d3f99a5424113178329e56c2ebe4b38fd2b46.zip
Move core.get_connected_players() implementation to C++
Keeping the ObjectRefs around in a table isn't ideal and this allows removing the somewhat nonsensical is_player_connected() added in 86ef7147.
Diffstat (limited to 'src/script/lua_api/l_env.h')
-rw-r--r--src/script/lua_api/l_env.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h
index 68a4eae50..ac2f8b588 100644
--- a/src/script/lua_api/l_env.h
+++ b/src/script/lua_api/l_env.h
@@ -101,6 +101,9 @@ private:
// pos = {x=num, y=num, z=num}
static int l_add_item(lua_State *L);
+ // get_connected_players()
+ static int l_get_connected_players(lua_State *L);
+
// get_player_by_name(name)
static int l_get_player_by_name(lua_State *L);