mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Formspecs: Introduce formspec_version to mods
This commit is contained in:
parent
b0baa698a4
commit
9acd36bf99
11 changed files with 54 additions and 10 deletions
|
@ -386,6 +386,9 @@ void Server::handleCommand_ClientReady(NetworkPacket* pkt)
|
|||
peer_id, major_ver, minor_ver, patch_ver,
|
||||
full_ver);
|
||||
|
||||
if (pkt->getRemainingBytes() >= 2)
|
||||
*pkt >> playersao->getPlayer()->formspec_version;
|
||||
|
||||
const std::vector<std::string> &players = m_clients.getPlayerNames();
|
||||
NetworkPacket list_pkt(TOCLIENT_UPDATE_PLAYER_LIST, 0, peer_id);
|
||||
list_pkt << (u8) PLAYER_LIST_INIT << (u16) players.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue