1
0

Implement protocol level chunk sparsing (#3864)

This commit is contained in:
peterbell10
2017-08-21 17:56:53 +01:00
committed by Alexander Harkness
parent ad3192d696
commit 096cdac80d
8 changed files with 363 additions and 313 deletions

View File

@@ -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