diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-19 08:44:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 08:44:29 +0100 |
commit | f8ad01ab7c4cf012781bd4caa821544e676c9267 (patch) | |
tree | af8664302b0dccfb1fa28f0d5479d47e0a57c4ab /src/server.cpp | |
parent | b8484ef24e8e1ec90a2967372808ab2bea538c7c (diff) | |
download | minetest-f8ad01ab7c4cf012781bd4caa821544e676c9267.tar.gz minetest-f8ad01ab7c4cf012781bd4caa821544e676c9267.tar.bz2 minetest-f8ad01ab7c4cf012781bd4caa821544e676c9267.zip |
Update server min protocol version to v24 (#5411)
* Update server min protocol version to v24
It's based on @sfan5 stats. See https://kitsunemimi.pw/tmp/serverlist_stats_2017-03-17.txt
v24 was bumped 25/08/14 and 0.4.11 was released 25/12/14
* Drop protocol v23 and lesser code
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/server.cpp b/src/server.cpp index 9ed2a045d..8e9313464 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2147,14 +2147,6 @@ void Server::sendAddNode(v3s16 p, MapNode n, u16 ignore_id, if (client != 0) { pkt << p << n.param0 << n.param1 << n.param2 << (u8) (remove_metadata ? 0 : 1); - - if (!remove_metadata) { - if (client->net_proto_version <= 21) { - // Old clients always clear metadata; fix it - // by sending the full block again. - client->SetBlockNotSent(getNodeBlockPos(p)); - } - } } m_clients.unlock(); @@ -2188,7 +2180,7 @@ void Server::SendBlockNoLock(u16 peer_id, MapBlock *block, u8 ver, u16 net_proto std::ostringstream os(std::ios_base::binary); block->serialize(os, ver, false); - block->serializeNetworkSpecific(os, net_proto_version); + block->serializeNetworkSpecific(os); std::string s = os.str(); NetworkPacket pkt(TOCLIENT_BLOCKDATA, 2 + 2 + 2 + 2 + s.size(), peer_id); |