diff options
author | Pokechu22 <pokechu022@gmail.com> | 2017-01-03 21:19:29 +0100 |
---|---|---|
committer | sweetgiorni <sweet.giorni@gmail.com> | 2017-01-03 22:11:26 +0100 |
commit | 28cc26c54ca09ed9ceb2ed2df53dc323f0be405c (patch) | |
tree | 3b93c8049db5188fcd4c41bcd3267c4fc9e1c293 /src/Protocol/Protocol_1_10.cpp | |
parent | Player check (diff) | |
download | cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.tar cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.tar.gz cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.tar.bz2 cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.tar.lz cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.tar.xz cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.tar.zst cuberite-28cc26c54ca09ed9ceb2ed2df53dc323f0be405c.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_10.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_10.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_10.cpp b/src/Protocol/Protocol_1_10.cpp index c0d9d921f..1cd7153a7 100644 --- a/src/Protocol/Protocol_1_10.cpp +++ b/src/Protocol/Protocol_1_10.cpp @@ -400,6 +400,14 @@ void cProtocol_1_10_0::WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Pkt.WriteBEUInt8(LIVING_HEALTH); a_Pkt.WriteBEUInt8(METADATA_TYPE_FLOAT); a_Pkt.WriteBEFloat(static_cast<float>(Player.GetHealth())); + + a_Pkt.WriteBEUInt8(PLAYER_DISPLAYED_SKIN_PARTS); + a_Pkt.WriteBEUInt8(METADATA_TYPE_BYTE); + a_Pkt.WriteBEUInt8(static_cast<UInt8>(Player.GetSkinParts())); + + a_Pkt.WriteBEUInt8(PLAYER_MAIN_HAND); + a_Pkt.WriteBEUInt8(METADATA_TYPE_BYTE); + a_Pkt.WriteBEUInt8(static_cast<UInt8>(Player.GetMainHand())); break; } case cEntity::etPickup: |