summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_10.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-04-07 23:23:54 +0200
committerGitHub <noreply@github.com>2020-04-07 23:23:54 +0200
commit6a21bf979c5ef4ad473971257f59fe9101397cd6 (patch)
treec8d2c94a59982b7a80a36542e77ae872158a6814 /src/Protocol/Protocol_1_10.cpp
parentFilter blocks to add to redstone sim's wake queue (#4621) (diff)
downloadcuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.gz
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.bz2
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.lz
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.xz
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.zst
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_10.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_10.cpp b/src/Protocol/Protocol_1_10.cpp
index 47d27c461..8a23ec09d 100644
--- a/src/Protocol/Protocol_1_10.cpp
+++ b/src/Protocol/Protocol_1_10.cpp
@@ -45,6 +45,19 @@ Implements the 1.10 protocol classes:
+#define HANDLE_READ(ByteBuf, Proc, Type, Var) \
+ Type Var; \
+ do { \
+ if (!ByteBuf.Proc(Var))\
+ {\
+ return;\
+ } \
+ } while (false)
+
+
+
+
+
// The disabled error is intended, since the Metadata have overlapping indexes
// based on the type of the Entity.
//
@@ -318,6 +331,15 @@ void cProtocol_1_10_0::SendSoundEffect(const AString & a_SoundName, double a_X,
+void cProtocol_1_10_0::HandlePacketResourcePackStatus(cByteBuffer & a_ByteBuffer)
+{
+ HANDLE_READ(a_ByteBuffer, ReadBEUInt8, UInt8, Status);
+}
+
+
+
+
+
void cProtocol_1_10_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
{
cServer * Server = cRoot::Get()->GetServer();