1
0

Fixed MapChunk packets to include (fake) biome data, makes clients happy

git-svn-id: http://mc-server.googlecode.com/svn/trunk@403 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-03-12 19:29:31 +00:00
parent b789d5ebf6
commit cb1edaf6df
5 changed files with 55 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ cChunkSender::cChunkSender(void) :
super("ChunkSender"),
m_World(NULL)
{
memset(m_BiomeData, biPlains, sizeof(m_BiomeData));
}
@@ -171,7 +172,7 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, cClientHa
return;
}
cPacket_PreChunk PreChunk(a_ChunkX, a_ChunkZ, true);
cPacket_MapChunk MapChunk(a_ChunkX, a_ChunkY, a_ChunkZ, m_BlockData);
cPacket_MapChunk MapChunk(a_ChunkX, a_ChunkY, a_ChunkZ, m_BlockData, m_BiomeData);
// Send:
if (a_Client == NULL)