mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Formspecs: Introduce formspec_version to mods
This commit is contained in:
@@ -1222,12 +1222,13 @@ void Client::sendRespawn()
|
||||
void Client::sendReady()
|
||||
{
|
||||
NetworkPacket pkt(TOSERVER_CLIENT_READY,
|
||||
1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash));
|
||||
1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash) + 2);
|
||||
|
||||
pkt << (u8) VERSION_MAJOR << (u8) VERSION_MINOR << (u8) VERSION_PATCH
|
||||
<< (u8) 0 << (u16) strlen(g_version_hash);
|
||||
|
||||
pkt.putRawString(g_version_hash, (u16) strlen(g_version_hash));
|
||||
pkt << (u16)FORMSPEC_API_VERSION;
|
||||
Send(&pkt);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user