From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Tue, 25 Apr 2023 00:01:00 +0000 (+1200) Subject: Stop mind ejection from logging errors on deleted entities. (#15760) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=56b9afd111d62ff941936dbf6ac8a480cdf9cd5e;p=space-station-14.git Stop mind ejection from logging errors on deleted entities. (#15760) --- diff --git a/Content.Server/Mind/MindSystem.cs b/Content.Server/Mind/MindSystem.cs index f9101234ce..5d017418be 100644 --- a/Content.Server/Mind/MindSystem.cs +++ b/Content.Server/Mind/MindSystem.cs @@ -56,12 +56,10 @@ public sealed class MindSystem : EntitySystem /// public void InternalEjectMind(EntityUid uid, MindComponent? mind = null) { - if (!Resolve(uid, ref mind)) + if (!Resolve(uid, ref mind, false)) return; - if (!Deleted(uid)) - RaiseLocalEvent(uid, new MindRemovedMessage(), true); - + RaiseLocalEvent(uid, new MindRemovedMessage(), true); mind.Mind = null; }