diff options
author | red-001 <red-001@outlook.ie> | 2017-06-08 14:30:09 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-08 15:30:09 +0200 |
commit | 4221c1b4412f2bf889bd603a26424003f5367f6a (patch) | |
tree | 622775e473bf073ed704afded90b050b51d63266 /src/network/clientopcodes.cpp | |
parent | 5bd33a158688f5fb950613278eefb95b0594a765 (diff) | |
download | minetest-4221c1b4412f2bf889bd603a26424003f5367f6a.tar.gz minetest-4221c1b4412f2bf889bd603a26424003f5367f6a.tar.bz2 minetest-4221c1b4412f2bf889bd603a26424003f5367f6a.zip |
Have the server send the player list to the client (#5924)
* Have the server send the player list to the client
Currently the client generates the player list based on the Client active object list, the issue with this is that we can't be sure all player active objects will be sent to the client, so this could result in players showing up when someone run `/status` but auto complete not working with their nick and CSM not being aware of the player
Diffstat (limited to 'src/network/clientopcodes.cpp')
-rw-r--r-- | src/network/clientopcodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/clientopcodes.cpp b/src/network/clientopcodes.cpp index bdcb1dfce..cb504b373 100644 --- a/src/network/clientopcodes.cpp +++ b/src/network/clientopcodes.cpp @@ -110,7 +110,7 @@ const ToClientCommandHandler toClientCommandTable[TOCLIENT_NUM_MSG_TYPES] = { "TOCLIENT_DELETE_PARTICLESPAWNER", TOCLIENT_STATE_CONNECTED, &Client::handleCommand_DeleteParticleSpawner }, // 0x53 { "TOCLIENT_CLOUD_PARAMS", TOCLIENT_STATE_CONNECTED, &Client::handleCommand_CloudParams }, // 0x54 { "TOCLIENT_FADE_SOUND", TOCLIENT_STATE_CONNECTED, &Client::handleCommand_FadeSound }, // 0x55 - null_command_handler, + { "TOCLIENT_UPDATE_PLAYER_LIST", TOCLIENT_STATE_CONNECTED, &Client::handleCommand_UpdatePlayerList }, // 0x56 null_command_handler, null_command_handler, null_command_handler, |