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/Protocol/Protocol_1_9.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/Protocol/Protocol_1_9.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_9.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp index 90e770134..73b499009 100644 --- a/src/Protocol/Protocol_1_9.cpp +++ b/src/Protocol/Protocol_1_9.cpp @@ -106,22 +106,6 @@ void cProtocol_1_9_0::SendAttachEntity(const cEntity & a_Entity, const cEntity & -void cProtocol_1_9_0::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer) -{ - ASSERT(m_State == 3); // In game mode? - - // Serialize first, before creating the Packetizer (the packetizer locks a CS) - // This contains the flags and bitmasks, too - const AString & ChunkData = a_Serializer.Serialize(cChunkDataSerializer::RELEASE_1_9_0, a_ChunkX, a_ChunkZ); - - cCSLock Lock(m_CSPacket); - SendData(ChunkData.data(), ChunkData.size()); -} - - - - - void cProtocol_1_9_0::SendDetachEntity(const cEntity & a_Entity, const cEntity & a_PreviousVehicle) { ASSERT(m_State == 3); // In game mode? @@ -2257,22 +2241,6 @@ cProtocol_1_9_4::cProtocol_1_9_4(cClientHandle * a_Client, const AString & a_Ser -void cProtocol_1_9_4::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer) -{ - ASSERT(m_State == 3); // In game mode? - - // Serialize first, before creating the Packetizer (the packetizer locks a CS) - // This contains the flags and bitmasks, too - const AString & ChunkData = a_Serializer.Serialize(cChunkDataSerializer::RELEASE_1_9_4, a_ChunkX, a_ChunkZ); - - cCSLock Lock(m_CSPacket); - SendData(ChunkData.data(), ChunkData.size()); -} - - - - - void cProtocol_1_9_4::SendUpdateSign(int a_BlockX, int a_BlockY, int a_BlockZ, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4) { ASSERT(m_State == 3); // In game mode? |