summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r--src/Entities/Entity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 5b993ac96..9abf75968 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -666,6 +666,10 @@ protected:
m_IsHeadInWater */
virtual void SetSwimState(cChunk & a_Chunk);
+ /** Set the entities position and last sent position.
+ Only to be used when the caller will broadcast a teleport or equivalent to clients. */
+ void ResetPosition(Vector3d a_NewPos);
+
private:
/** Whether the entity is ticking or not. If not, it is scheduled for removal or world-teleportation. */