summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_11.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-05 11:58:46 +0100
committerGitHub <noreply@github.com>2020-03-05 11:58:46 +0100
commitcff9f7571baa8a2258d5faedb918d7889fe68f9d (patch)
tree199d529aa4eeda8052ca160b9523a16488040788 /src/Protocol/Protocol_1_11.cpp
parentStabilise MoveToWorld (#4004) (diff)
downloadcuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.tar
cuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.tar.gz
cuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.tar.bz2
cuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.tar.lz
cuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.tar.xz
cuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.tar.zst
cuberite-cff9f7571baa8a2258d5faedb918d7889fe68f9d.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_11.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Protocol/Protocol_1_11.cpp b/src/Protocol/Protocol_1_11.cpp
index 9c8e0c544..9aea81cc3 100644
--- a/src/Protocol/Protocol_1_11.cpp
+++ b/src/Protocol/Protocol_1_11.cpp
@@ -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());