Merge pull request #2628 from Gargaj/creeperdeflate
Idle/deflating creeper should send -1
This commit is contained in:
commit
b32d13ae2d
@ -2985,7 +2985,7 @@ void cProtocol172::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob)
|
||||
case mtCreeper:
|
||||
{
|
||||
a_Pkt.WriteBEUInt8(0x10);
|
||||
a_Pkt.WriteBEUInt8(reinterpret_cast<const cCreeper &>(a_Mob).IsBlowing() ? 1 : 0);
|
||||
a_Pkt.WriteBEUInt8(reinterpret_cast<const cCreeper &>(a_Mob).IsBlowing() ? 1 : 255);
|
||||
a_Pkt.WriteBEUInt8(0x11);
|
||||
a_Pkt.WriteBEUInt8(reinterpret_cast<const cCreeper &>(a_Mob).IsCharged() ? 1 : 0);
|
||||
break;
|
||||
|
@ -3296,7 +3296,7 @@ void cProtocol180::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob)
|
||||
{
|
||||
auto & Creeper = reinterpret_cast<const cCreeper &>(a_Mob);
|
||||
a_Pkt.WriteBEUInt8(0x10);
|
||||
a_Pkt.WriteBEUInt8(Creeper.IsBlowing() ? 1 : 0);
|
||||
a_Pkt.WriteBEUInt8(Creeper.IsBlowing() ? 1 : 255);
|
||||
a_Pkt.WriteBEUInt8(0x11);
|
||||
a_Pkt.WriteBEUInt8(Creeper.IsCharged() ? 1 : 0);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user