Attached entities can't enter portals (#4484)
* Attached entities can't enter portals * Whitespace fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user