summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_12.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-07-12 10:11:29 +0200
committerGitHub <noreply@github.com>2017-07-12 10:11:29 +0200
commite38a2a1e8c5af4244dc79279310867e678198e4d (patch)
treed286afa2fe0643ae73d7e6d2f4f3a4e6f83632fa /src/Protocol/Protocol_1_12.cpp
parentMade cBlockArea:cChunkReader AreaBounds inclusive on both sides. (#3842) (diff)
downloadcuberite-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 'src/Protocol/Protocol_1_12.cpp')
-rw-r--r--src/Protocol/Protocol_1_12.cpp24
1 files changed, 22 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;