diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-08-21 18:56:53 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-08-21 18:56:53 +0200 |
commit | 096cdac80d222ac0be2a0554a759a0b16c1c34f6 (patch) | |
tree | 03190afb388f999bf9740fbae15d688780f036d5 /src/ChunkSender.cpp | |
parent | Award player an achievement when creating a beacon (#3930) (diff) | |
download | cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.gz cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.bz2 cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.lz cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.xz cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.zst cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkSender.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChunkSender.cpp b/src/ChunkSender.cpp index ddcd3b534..60f9d8c68 100644 --- a/src/ChunkSender.cpp +++ b/src/ChunkSender.cpp @@ -257,7 +257,7 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkZ, std::unordered_set<cCli { return; } - cChunkDataSerializer Data(m_BlockTypes, m_BlockMetas, m_BlockLight, m_BlockSkyLight, m_BiomeMap, m_World.GetDimension()); + cChunkDataSerializer Data(m_Data, m_BiomeMap, m_World.GetDimension()); for (const auto client : a_Clients) { @@ -271,6 +271,7 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkZ, std::unordered_set<cCli } // for itr - m_Packets[] } + m_Data.Clear(); m_BlockEntities.clear(); // TODO: Send entity spawn packets |