diff options
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 421eddbd5..07342bd52 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2029,6 +2029,9 @@ void cPlayer::DoMoveToWorld(const cEntity::sWorldChangeInfo & a_WorldChangeInfo) // Stop all mobs from targeting this player StopEveryoneFromTargetingMe(); + // If player is attached to entity, detach, to prevent client side effects + Detach(); + // Prevent further ticking in this world SetIsTicking(false); |