From b480a3e9fd7036208068c4fad410f0cae8fc9c4f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 12 Sep 2021 14:35:52 +0200 Subject: Fix broken handling of NodemetaChanged packets fixes #11610 --- src/network/clientpackethandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/clientpackethandler.cpp') diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index 128240c02..b2965c23d 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -261,7 +261,7 @@ void Client::handleCommand_NodemetaChanged(NetworkPacket *pkt) return; std::istringstream is(pkt->readLongString(), std::ios::binary); - std::stringstream sstr(std::ios::binary); + std::stringstream sstr(std::ios::binary | std::ios::in | std::ios::out); decompressZlib(is, sstr); NodeMetadataList meta_updates_list(false); -- cgit v1.2.3