From 3e216b6e2b8f47c41a53f167d92c0e804912d692 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Wed, 22 Dec 2021 16:08:58 +1100 Subject: [PATCH] Fix examine deletions --- Content.Shared/Examine/ExamineSystemShared.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Examine/ExamineSystemShared.cs b/Content.Shared/Examine/ExamineSystemShared.cs index 19b227dbc1..3940e6369e 100644 --- a/Content.Shared/Examine/ExamineSystemShared.cs +++ b/Content.Shared/Examine/ExamineSystemShared.cs @@ -64,7 +64,7 @@ namespace Content.Shared.Examine [Pure] public bool CanExamine(EntityUid examiner, EntityUid examined) { - return CanExamine(examiner, EntityManager.GetComponent(examined).MapPosition, + return !Deleted(examined) && CanExamine(examiner, EntityManager.GetComponent(examined).MapPosition, entity => entity == examiner || entity == examined); }