summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_11.cpp
diff options
context:
space:
mode:
authorPersson-dev <66266021+Persson-dev@users.noreply.github.com>2021-12-29 20:30:09 +0100
committerGitHub <noreply@github.com>2021-12-29 20:30:09 +0100
commit1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a (patch)
tree798914afc59b513341a86cbb5bd0918333104595 /src/Protocol/Protocol_1_11.cpp
parentImproved farmer AI & Fixed entity loading functions (#5351) (diff)
downloadcuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.tar
cuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.tar.gz
cuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.tar.bz2
cuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.tar.lz
cuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.tar.xz
cuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.tar.zst
cuberite-1edc6c8601f9d00751bf7c9f7fcc69d1e18bb46a.zip
Diffstat (limited to 'src/Protocol/Protocol_1_11.cpp')
-rw-r--r--src/Protocol/Protocol_1_11.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_11.cpp b/src/Protocol/Protocol_1_11.cpp
index 30935574b..7a9a53e6f 100644
--- a/src/Protocol/Protocol_1_11.cpp
+++ b/src/Protocol/Protocol_1_11.cpp
@@ -1102,6 +1102,19 @@ void cProtocol_1_11_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_
break;
} // case mtSheep
+ case mtSkeleton:
+ {
+ auto & Skeleton = static_cast<const cSkeleton &>(a_Mob);
+ a_Pkt.WriteBEUInt8(LIVING_ACTIVE_HAND);
+ a_Pkt.WriteBEUInt8(METADATA_TYPE_BYTE);
+ a_Pkt.WriteBEUInt8(Skeleton.IsChargingBow() ? 0x01 : 0x00);
+
+ a_Pkt.WriteBEUInt8(ABSTRACT_SKELETON_ARMS_SWINGING);
+ a_Pkt.WriteBEUInt8(METADATA_TYPE_BOOL);
+ a_Pkt.WriteBool(Skeleton.IsChargingBow());
+ break;
+ } // case mtSkeleton
+
case mtSlime:
{
auto & Slime = static_cast<const cSlime &>(a_Mob);
@@ -1260,7 +1273,6 @@ void cProtocol_1_11_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_
case mtIronGolem:
case mtMooshroom:
case mtSilverfish:
- case mtSkeleton:
case mtStray:
case mtSpider:
case mtSquid: