From ff2c246de28689f086d1ea8f73be8c9d52c53ed0 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 17 Jul 2020 18:46:50 +0100 Subject: cProtocolRecognizer goes on a diet (#4770) - Removed inheritance from cProtocol --- src/ClientHandle.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ClientHandle.h') diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 1d988b137..dd5d54097 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -17,6 +17,7 @@ #include "ChunkSender.h" #include "EffectID.h" #include "Protocol/ForgeHandshake.h" +#include "Protocol/ProtocolRecognizer.h" #include "UUID.h" @@ -437,7 +438,7 @@ private: std::unordered_set m_ChunksToSend; // Chunks that need to be sent to the player (queued because they weren't generated yet or there's not enough time to send them) cChunkCoordsList m_SentChunks; // Chunks that are currently sent to the client - std::unique_ptr m_Protocol; + cMultiVersionProtocol m_Protocol; /** Protects m_IncomingData against multithreaded access. */ cCriticalSection m_CSIncomingData; -- cgit v1.2.3