1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 17:15:21 +02:00

Clean up and compress some pre-join packets (#15881)

This commit is contained in:
sfan5
2025-03-11 20:00:07 +01:00
committed by GitHub
parent 287880aa27
commit afb15978d9
12 changed files with 260 additions and 102 deletions

View File

@@ -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);