diff options
author | bibo38 <bibo38@github.com> | 2015-07-17 01:09:06 +0200 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-07-17 01:09:06 +0200 |
commit | 6a27ec2ea0a707d44580dc19e52bb4b6181bb403 (patch) | |
tree | c754094876237a8cf1f331071c8adc3e428140cf /src/Protocol | |
parent | Merge pull request #2363 from scribblemaniac/improve-spider-ai (diff) | |
download | cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.gz cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.bz2 cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.lz cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.xz cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.zst cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index f4f32dfdb..e8acf8bd4 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -3437,14 +3437,6 @@ void cProtocol180::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) break; } // case mtPig - case mtRabbit: - { - auto & Rabbit = reinterpret_cast<const cRabbit &>(a_Mob); - a_Pkt.WriteBEUInt8(0x0c); - a_Pkt.WriteBEInt8(Rabbit.GetAge()); - break; - } // case mtRabbit - case mtSheep: { auto & Sheep = reinterpret_cast<const cSheep &>(a_Mob); @@ -3462,6 +3454,17 @@ void cProtocol180::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) break; } // case mtSheep + case mtRabbit: + { + auto & Rabbit = reinterpret_cast<const cRabbit &>(a_Mob); + a_Pkt.WriteBEUInt8(0x12); + a_Pkt.WriteBEUInt8(Rabbit.GetRabbitTypeAsNumber()); + + a_Pkt.WriteBEUInt8(0x0c); + a_Pkt.WriteBEInt8(Rabbit.GetAge()); + break; + } // case mtRabbit + case mtSkeleton: { auto & Skeleton = reinterpret_cast<const cSkeleton &>(a_Mob); |