From 5a2163d7e6ffa0c5c568be41257fb726d452b3b9 Mon Sep 17 00:00:00 2001 From: Mat Date: Sat, 7 Mar 2020 13:56:02 +0200 Subject: Don't send entity velocity for boats (#4488) * Don't send entity velocity for boats --- src/Entities/Entity.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Entities/Entity.h') 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; -- cgit v1.2.3