mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clean up and compress some pre-join packets (#15881)
This commit is contained in:
parent
287880aa27
commit
afb15978d9
12 changed files with 260 additions and 102 deletions
|
@ -902,7 +902,6 @@ void Client::request_media(const std::vector<std::string> &file_requests)
|
|||
|
||||
FATAL_ERROR_IF(file_requests_size > 0xFFFF, "Unsupported number of file requests");
|
||||
|
||||
// Packet dynamicly resized
|
||||
NetworkPacket pkt(TOSERVER_REQUEST_MEDIA, 2 + 0);
|
||||
|
||||
pkt << (u16) (file_requests_size & 0xFFFF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue