summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_10.cpp
diff options
context:
space:
mode:
authorPokechu22 <pokechu022@gmail.com>2017-01-03 21:19:29 +0100
committerMattes D <github@xoft.cz>2017-01-03 21:19:29 +0100
commit9c2a0bb7b9e2d8402813f4755398884a801fec59 (patch)
treeaafb4b43ee81c59eea01d06b725e04e332ca36ea /src/Protocol/Protocol_1_10.cpp
parentDebuggers: PluginStats are now output only on request. (#3513) (diff)
downloadcuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.gz
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.bz2
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.lz
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.xz
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.zst
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_10.cpp8
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: