diff options
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index d3e30fc9c..8897063a0 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -2197,6 +2197,12 @@ void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializ return; } + if (m_Protocol == nullptr) + { + // TODO (#2588): investigate if and why this occurs + return; + } + m_Protocol->SendChunkData(a_ChunkX, a_ChunkZ, a_Serializer); // Add the chunk to the list of chunks sent to the player: |