diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mapnode.cpp | 4 | ||||
-rw-r--r-- | src/server.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index c616e0117..5dab93754 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -234,8 +234,10 @@ u32 MapNode::serializedLength(u8 version) return 1; else if(version <= 9) return 2; - else + else if(version <= 23) return 3; + else + return 4; } void MapNode::serialize(u8 *dest, u8 version) { diff --git a/src/server.cpp b/src/server.cpp index 0e4986411..b3cbea6a4 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -4016,7 +4016,7 @@ void Server::SendBlocks(float dtime) RemoteClient *client = getClient(q.peer_id); - SendBlockNoLock(q.peer_id, block, 24);//client->serialization_version); + SendBlockNoLock(q.peer_id, block, client->serialization_version); client->SentBlock(q.pos); |