Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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 86ef714.
- Loading branch information
Showing
with
27 additions
and 17 deletions.
- +0 −16 builtin/game/misc.lua
- +1 −0 src/script/common/c_internal.h
- +19 −1 src/script/lua_api/l_env.cpp
- +3 −0 src/script/lua_api/l_env.h
- +3 −0 src/script/lua_api/l_object.cpp
- +1 −0 src/serverenvironment.h