From cb1edaf6df5575c28b50462bc98c5a6072b449b5 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 12 Mar 2012 19:29:31 +0000 Subject: 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 --- source/ChunkSender.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/ChunkSender.cpp') diff --git a/source/ChunkSender.cpp b/source/ChunkSender.cpp index f73246c98..5d7efbdc8 100644 --- a/source/ChunkSender.cpp +++ b/source/ChunkSender.cpp @@ -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) -- cgit v1.2.3