diff options
author | Mat <mail@mathias.is> | 2020-04-07 23:23:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 23:23:54 +0200 |
commit | 6a21bf979c5ef4ad473971257f59fe9101397cd6 (patch) | |
tree | c8d2c94a59982b7a80a36542e77ae872158a6814 /src/Protocol/Protocol_1_10.cpp | |
parent | Filter blocks to add to redstone sim's wake queue (#4621) (diff) | |
download | cuberite-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 'src/Protocol/Protocol_1_10.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_10.cpp | 22 |
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(); |