1
0

Attached entities can't enter portals (#4484)

* Attached entities can't enter portals

* Whitespace fixes
This commit is contained in:
Mat
2020-03-05 21:33:43 +02:00
committed by GitHub
parent d572ad7faf
commit 83a41c93e9
2 changed files with 18 additions and 0 deletions

View File

@@ -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);