summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-26 23:01:07 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-26 23:01:07 +0200
commitd97ad781b4ea1998b9819f139c7ab7806161042e (patch)
tree84f8b2e37bb141b7ef57e34385ab0be7b7dc60d2 /source/cClientHandle.cpp
parentTurned a common assert into a warning log (diff)
downloadcuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.tar
cuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.tar.gz
cuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.tar.bz2
cuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.tar.lz
cuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.tar.xz
cuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.tar.zst
cuberite-d97ad781b4ea1998b9819f139c7ab7806161042e.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 5cfd0a510..21d1f1722 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -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)