diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-19 17:29:49 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-19 17:29:49 +0200 |
commit | 00f8c3a2251833f2d16ec89861a4377029cb2401 (patch) | |
tree | 595e6a1a43c31efdd5f47daff11f9a34c4d3a8e0 /src/ClientHandle.cpp | |
parent | Reduce duplication in CompressPacket (diff) | |
download | cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.tar cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.tar.gz cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.tar.bz2 cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.tar.lz cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.tar.xz cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.tar.zst cuberite-00f8c3a2251833f2d16ec89861a4377029cb2401.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 2a2c719b6..15b7238fe 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -2461,7 +2461,7 @@ void cClientHandle::SendChatSystem(const cCompositeChat & a_Message) -void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer) +void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, const std::string_view a_ChunkData) { ASSERT(m_Player != nullptr); @@ -2490,7 +2490,7 @@ void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializ return; } - m_Protocol->SendChunkData(a_ChunkX, a_ChunkZ, a_Serializer); + m_Protocol->SendChunkData(a_ChunkData); // Add the chunk to the list of chunks sent to the player: { |