diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-07-12 10:11:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 10:11:29 +0200 |
commit | e38a2a1e8c5af4244dc79279310867e678198e4d (patch) | |
tree | d286afa2fe0643ae73d7e6d2f4f3a4e6f83632fa /src | |
parent | Made cBlockArea:cChunkReader AreaBounds inclusive on both sides. (#3842) (diff) | |
download | cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.tar cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.tar.gz cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.tar.bz2 cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.tar.lz cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.tar.xz cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.tar.zst cuberite-e38a2a1e8c5af4244dc79279310867e678198e4d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_12.cpp | 24 | ||||
-rw-r--r-- | src/Protocol/Protocol_1_12.h | 2 |
2 files changed, 24 insertions, 2 deletions
diff --git a/src/Protocol/Protocol_1_12.cpp b/src/Protocol/Protocol_1_12.cpp index 904b31ca0..a702361b2 100644 --- a/src/Protocol/Protocol_1_12.cpp +++ b/src/Protocol/Protocol_1_12.cpp @@ -1296,6 +1296,26 @@ void cProtocol_1_12::SendUpdateBlockEntity(cBlockEntity & a_BlockEntity) +void cProtocol_1_12::HandlePacketCraftingBookData(cByteBuffer & a_ByteBuffer) +{ + a_ByteBuffer.SkipRead(a_ByteBuffer.GetReadableSpace() - 1); + m_Client->GetPlayer()->SendMessageInfo("The green crafting book feature is not implemented yet."); +} + + + + + +void cProtocol_1_12::HandlePacketAdvancementTab(cByteBuffer & a_ByteBuffer) +{ + a_ByteBuffer.SkipRead(a_ByteBuffer.GetReadableSpace() - 1); + m_Client->GetPlayer()->SendMessageInfo("The new advancements are not implemented."); +} + + + + + void cProtocol_1_12::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay, bool a_DoDaylightCycle) { ASSERT(m_State == 3); // In game mode? @@ -1526,9 +1546,9 @@ bool cProtocol_1_12::HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketTyp case 0x14: HandlePacketBlockDig(a_ByteBuffer); return true; case 0x15: HandlePacketEntityAction(a_ByteBuffer); return true; case 0x16: HandlePacketSteerVehicle(a_ByteBuffer); return true; - case 0x17: break; // Crafting Book Data - not yet implemented + case 0x17: HandlePacketCraftingBookData(a_ByteBuffer); return true; case 0x18: break; // Resource pack status - not yet implemented - case 0x19: break; // Advancement Tab - not yet implemented + case 0x19: HandlePacketAdvancementTab(a_ByteBuffer); return true; case 0x1a: HandlePacketSlotSelect(a_ByteBuffer); return true; case 0x1b: HandlePacketCreativeInventoryAction(a_ByteBuffer); return true; case 0x1c: HandlePacketUpdateSign(a_ByteBuffer); return true; diff --git a/src/Protocol/Protocol_1_12.h b/src/Protocol/Protocol_1_12.h index 814932e79..4d90e2183 100644 --- a/src/Protocol/Protocol_1_12.h +++ b/src/Protocol/Protocol_1_12.h @@ -62,6 +62,8 @@ public: virtual void SendUpdateBlockEntity(cBlockEntity & a_BlockEntity) override; protected: virtual bool HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType) override; + virtual void HandlePacketAdvancementTab(cByteBuffer & a_ByteBuffer); + virtual void HandlePacketCraftingBookData(cByteBuffer & a_ByteBuffer); virtual void HandlePacketBlockPlace(cByteBuffer & a_ByteBuffer) override; virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) override; virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) override; |