NBTChunkSerializer: Cleaned up interface.
Removed dependency on cChunkDataCallback. Moved all the serializing code into a worker class. Changed the serialization into a single-call action.
This commit is contained in:
@@ -241,7 +241,7 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkZ, std::unordered_set<cCli
|
||||
}
|
||||
|
||||
// Query and prepare chunk data:
|
||||
if (!m_World.GetChunkData(a_ChunkX, a_ChunkZ, *this))
|
||||
if (!m_World.GetChunkData({a_ChunkX, a_ChunkZ}, *this))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user