Only delete ghosts on return to body or unghost

This commit is contained in:
zumorica
2020-04-17 19:19:37 +02:00
parent 01e8e4784b
commit 02ccc6dc45
3 changed files with 7 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ namespace Content.Server.GameObjects.Components.Observer
if (netChannel == null || netChannel == actor.playerSession.ConnectedClient)
{
actor.playerSession.ContentData().Mind.UnVisit();
Timer.Spawn(100, Owner.Delete);
}
break;
case PlayerAttachedMsg msg:
@@ -58,7 +59,6 @@ namespace Content.Server.GameObjects.Components.Observer
break;
case PlayerDetachedMsg msg:
msg.OldPlayer.VisibilityMask &= ~(int)VisibilityFlags.Ghost;
Timer.Spawn(100, Owner.Delete);
break;
default:
break;