Explicit change record size.
This commit is contained in:
parent
4b4c3f2a20
commit
87f39e9e28
@ -210,7 +210,7 @@ void cProtocol125::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockV
|
||||
WriteInt (a_ChunkX);
|
||||
WriteInt (a_ChunkZ);
|
||||
WriteShort((short)a_Changes.size());
|
||||
WriteUInt ((UInt32)(sizeof(int) * a_Changes.size()));
|
||||
WriteUInt ((UInt32)(4 * a_Changes.size()));
|
||||
for (sSetBlockVector::const_iterator itr = a_Changes.begin(), end = a_Changes.end(); itr != end; ++itr)
|
||||
{
|
||||
UInt32 Coords = ((UInt32)itr->y) | ((UInt32)(itr->z << 8)) | ((UInt32)(itr->x << 12));
|
||||
|
Loading…
Reference in New Issue
Block a user