diff options
author | x2048 <codeforsmile@gmail.com> | 2023-01-09 21:40:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 21:40:08 +0100 |
commit | 139db66901a76dc95747335145606839aae746bb (patch) | |
tree | f4775c10f525e4635dc29253f457263463a73522 /src/network/clientpackethandler.cpp | |
parent | d69cb4fb5d74753b06cc9c42e2a221e82506705a (diff) | |
download | minetest-139db66901a76dc95747335145606839aae746bb.tar.xz |
Remove mapblock cache for mesh generation. (#13124)
Reduces memory consumption and improves performance
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r-- | src/network/clientpackethandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index 0e6256356..8a323872a 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -322,10 +322,9 @@ void Client::handleCommand_BlockData(NetworkPacket* pkt) /* Create a new block */ - block = new MapBlock(&m_env.getMap(), p, this); + block = sector->createBlankBlock(p.Y); block->deSerialize(istr, m_server_ser_ver, false); block->deSerializeNetworkSpecific(istr); - sector->insertBlock(block); } if (m_localdb) { |