mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Remove null bytes from TOCLIENT_BLOCKDATA (#10433)
This commit is contained in:
parent
c6e3050357
commit
09af0c5946
1 changed files with 1 additions and 1 deletions
|
@ -2338,7 +2338,7 @@ void Server::SendBlockNoLock(session_t peer_id, MapBlock *block, u8 ver,
|
|||
block->serializeNetworkSpecific(os);
|
||||
std::string s = os.str();
|
||||
|
||||
NetworkPacket pkt(TOCLIENT_BLOCKDATA, 2 + 2 + 2 + 2 + s.size(), peer_id);
|
||||
NetworkPacket pkt(TOCLIENT_BLOCKDATA, 2 + 2 + 2 + s.size(), peer_id);
|
||||
|
||||
pkt << block->getPos();
|
||||
pkt.putRawString(s.c_str(), s.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue