diff options
author | Mat <mail@mathias.is> | 2020-03-07 12:56:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 12:56:02 +0100 |
commit | 5a2163d7e6ffa0c5c568be41257fb726d452b3b9 (patch) | |
tree | 2ac35cb27db2216ff0f4a0874f0ad40f27b6a334 /src/Entities/Entity.h | |
parent | Attached entities can't enter portals (#4484) (diff) | |
download | cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.gz cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.bz2 cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.lz cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.xz cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.zst cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.zip |
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index b151f745d..563db7b9e 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -656,6 +656,10 @@ protected: Data: https://minecraft.gamepedia.com/Entity#Motion_of_entities */ float m_AirDrag; + /** Last position sent to client via the Relative Move or Teleport packets (not Velocity) + Only updated if cEntity::BroadcastMovementUpdate() is called! */ + Vector3d m_LastSentPosition; + Vector3d m_LastPosition; eEntityType m_EntityType; @@ -752,10 +756,6 @@ private: /** Position of the entity's XZ center and Y bottom */ Vector3d m_Position; - /** Last position sent to client via the Relative Move or Teleport packets (not Velocity) - Only updated if cEntity::BroadcastMovementUpdate() is called! */ - Vector3d m_LastSentPosition; - /** Measured in meter / second */ Vector3d m_WaterSpeed; |