diff options
Diffstat (limited to 'src/Protocol/Protocol_1_8.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index 9509fe51e..668ca7542 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -1862,6 +1862,7 @@ UInt32 cProtocol_1_8_0::GetProtocolMobType(eMonsterType a_MobType) case mtVillager: return 120; case mtWitch: return 66; case mtWither: return 64; + case mtWitherSkeleton: return 51; case mtWolf: return 95; case mtZombie: return 54; case mtZombiePigman: return 57; @@ -3714,14 +3715,6 @@ void cProtocol_1_8_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_M break; } // case mtRabbit - case mtSkeleton: - { - auto & Skeleton = static_cast<const cSkeleton &>(a_Mob); - a_Pkt.WriteBEUInt8(0x0d); - a_Pkt.WriteBEUInt8(Skeleton.IsWither() ? 1 : 0); - break; - } // case mtSkeleton - case mtSlime: { auto & Slime = static_cast<const cSlime &>(a_Mob); @@ -3758,6 +3751,13 @@ void cProtocol_1_8_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_M break; } // case mtWither + case mtWitherSkeleton: + { + a_Pkt.WriteBEUInt8(0x0d); + a_Pkt.WriteBEUInt8(1); // Is wither skeleton + break; + } // case mtWitherSkeleton + case mtWolf: { auto & Wolf = static_cast<const cWolf &>(a_Mob); |