git-svn-id: http://mc-server.googlecode.com/svn/trunk@795 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "cTimer.h"
|
||||
#include "items/Item.h"
|
||||
#include "blocks/Block.h"
|
||||
#include "ChunkDataSerializer.h"
|
||||
|
||||
#include "cTracer.h"
|
||||
#include "Vector3f.h"
|
||||
@@ -2025,6 +2026,21 @@ void cClientHandle::SendThunderbolt(int a_BlockX, int a_BlockY, int a_BlockZ)
|
||||
|
||||
|
||||
|
||||
void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer)
|
||||
{
|
||||
// Send the pre-chunk:
|
||||
cPacket_PreChunk pre(a_ChunkX, a_ChunkZ, true);
|
||||
Send(pre);
|
||||
|
||||
// Send the data:
|
||||
cPacket_MapChunk mc(a_ChunkX, a_ChunkZ, a_Serializer.Serialize(cChunkDataSerializer::RELEASE_1_2_5));
|
||||
Send(mc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cClientHandle::CheckIfWorldDownloaded(void)
|
||||
{
|
||||
if (m_State != csDownloadingWorld)
|
||||
|
||||
Reference in New Issue
Block a user