Use LastSentPos for mob spawn packet in 1.11+ (#4490)
This commit is contained in:
@@ -389,9 +389,10 @@ void cProtocol_1_11_0::SendSpawnMob(const cMonster & a_Mob)
|
||||
Pkt.WriteBEUInt64(0);
|
||||
Pkt.WriteBEUInt64(a_Mob.GetUniqueID());
|
||||
Pkt.WriteVarInt32(static_cast<UInt32>(a_Mob.GetMobType()));
|
||||
Pkt.WriteBEDouble(a_Mob.GetPosX());
|
||||
Pkt.WriteBEDouble(a_Mob.GetPosY());
|
||||
Pkt.WriteBEDouble(a_Mob.GetPosZ());
|
||||
Vector3d LastSentPos = a_Mob.GetLastSentPos();
|
||||
Pkt.WriteBEDouble(LastSentPos.x);
|
||||
Pkt.WriteBEDouble(LastSentPos.y);
|
||||
Pkt.WriteBEDouble(LastSentPos.z);
|
||||
Pkt.WriteByteAngle(a_Mob.GetPitch());
|
||||
Pkt.WriteByteAngle(a_Mob.GetHeadYaw());
|
||||
Pkt.WriteByteAngle(a_Mob.GetYaw());
|
||||
|
||||
Reference in New Issue
Block a user