idle/deflating creeper should be -1
according to http://wiki.vg/Entities#Creeper
This commit is contained in:
parent
3c3be921d7
commit
6d8baa6a75
@ -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