From b98e2c17e0305c78af3d7581f0bee29ddf26d8f8 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 22 Jun 2021 19:31:08 +0100 Subject: Don't flush ClientHandle data multiple times * Change cWorld::m_Players to a vector --- src/Chunk.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Chunk.cpp') diff --git a/src/Chunk.cpp b/src/Chunk.cpp index efdce7edc..fac2d37ee 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -152,12 +152,6 @@ void cChunk::BroadcastPendingChanges(void) } } - // Flush out all buffered data: - for (const auto ClientHandle : m_LoadedByClient) - { - ClientHandle->ProcessProtocolOut(); - } - m_PendingSendBlocks.clear(); m_PendingSendBlockEntities.clear(); } -- cgit v1.2.3