diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-21 19:55:39 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-28 22:08:06 +0200 |
commit | ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069 (patch) | |
tree | 5d14d41fa0e5cbef49b6a8e7a6eb326f2482598c /src/Protocol/Protocol_1_13.cpp | |
parent | Removed const (diff) | |
download | cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.tar cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.tar.gz cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.tar.bz2 cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.tar.lz cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.tar.xz cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.tar.zst cuberite-ecd8f0c0deaf5210ad89da1e9b25f9e9120d5069.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_13.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_13.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/Protocol/Protocol_1_13.cpp b/src/Protocol/Protocol_1_13.cpp index 25e68fd01..9a7202f02 100644 --- a/src/Protocol/Protocol_1_13.cpp +++ b/src/Protocol/Protocol_1_13.cpp @@ -130,19 +130,6 @@ void cProtocol_1_13::SendParticleEffect(const AString & a_ParticleName, Vector3f -void cProtocol_1_13::SendPluginMessage(const AString & a_Channel, const AString & a_Message) -{ - ASSERT(m_State == 3); // In game mode? - - cPacketizer Pkt(*this, pktPluginMessage); - Pkt.WriteString(a_Channel); - Pkt.WriteString(a_Message); -} - - - - - void cProtocol_1_13::SendScoreboardObjective(const AString & a_Name, const AString & a_DisplayName, Byte a_Mode) { // TODO @@ -222,13 +209,13 @@ void cProtocol_1_13::SendUpdateBlockEntity(cBlockEntity & a_BlockEntity) case E_BLOCK_COMMAND_BLOCK: Action = 2; break; // Update command block text case E_BLOCK_BEACON: Action = 3; break; // Update beacon entity case E_BLOCK_HEAD: Action = 4; break; // Update Mobhead entity - // case E_BLOCK_CONDUIT: Action = 5; break; // Update Conduit entity + // case E_BLOCK_CONDUIT: Action = 5; break; // Update Conduit entity case E_BLOCK_STANDING_BANNER: case E_BLOCK_WALL_BANNER: Action = 6; break; // Update banner entity - // case structure tile entity: Action = 7; break; // Update Structure tile entity + // case Structure Block: Action = 7; break; // Update Structure tile entity case E_BLOCK_END_GATEWAY: Action = 8; break; // Update destination for a end gateway entity case E_BLOCK_SIGN_POST: Action = 9; break; // Update sign entity - // case E_BLOCK_SHULKER_BOX: Action = 10; break; // sets shulker box - not used just here if anyone is confused from reading the protocol wiki + // case E_BLOCK_SHULKER_BOX:Action = 10; break; // sets shulker box - not used just here if anyone is confused from reading the protocol wiki case E_BLOCK_BED: Action = 11; break; // Update bed color default: ASSERT(!"Unhandled or unimplemented BlockEntity update request!"); break; } @@ -306,7 +293,7 @@ void cProtocol_1_13::HandlePacketPluginMessage(cByteBuffer & a_ByteBuffer) m_Client->SetClientBrand(Brand); // Send back our brand, including the length: - SendPluginMessage("minecraft:brand", "Cuberite"); + SendPluginMessage("minecraft:brand", "\x08""Cuberite"); return; } |