diff options
| author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-05 15:51:49 +0100 |
|---|---|---|
| committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-05 15:51:49 +0100 |
| commit | 232923667a49be16d0fd3fedd61cb6fe901a0af2 (patch) | |
| tree | 72c4980276a0f69ae78c723c8ab0cce4c7ed31b2 /src/client/client.cpp | |
| parent | 1f4d8d860ebb6784842e794c8e2633954bbb5332 (diff) | |
| download | minetest-232923667a49be16d0fd3fedd61cb6fe901a0af2.tar.xz | |
Send all item metadata when local map saving is enabled
Diffstat (limited to 'src/client/client.cpp')
| -rw-r--r-- | src/client/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp index ef4a3cdfc..d8a83136c 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -1008,7 +1008,7 @@ AuthMechanism Client::choseAuthMech(const u32 mechs) void Client::sendInit(const std::string &playerName) { - NetworkPacket pkt(TOSERVER_INIT, 1 + 2 + 2 + (1 + playerName.size())); + NetworkPacket pkt(TOSERVER_INIT, 1 + 2 + 2 + (1 + playerName.size()) + 1); // we don't support network compression yet u16 supp_comp_modes = NETPROTO_COMPRESSION_NONE; @@ -1016,6 +1016,7 @@ void Client::sendInit(const std::string &playerName) pkt << (u8) SER_FMT_VER_HIGHEST_READ << (u16) supp_comp_modes; pkt << (u16) CLIENT_PROTOCOL_VERSION_MIN << (u16) CLIENT_PROTOCOL_VERSION_MAX; pkt << playerName; + pkt << (u8) (m_localdb ? 1 : 0); Send(&pkt); } |
