From: Errant <35878406+Errant-4@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:55:47 +0000 (+0200) Subject: Aghosts can now /ghost (#29360) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=49128ba9d3492e41f64a3ad12f40226015a22387;p=space-station-14.git Aghosts can now /ghost (#29360) I will not be subjected to criminal abuse --- diff --git a/Content.Server/GameTicking/GameTicker.GamePreset.cs b/Content.Server/GameTicking/GameTicker.GamePreset.cs index 6e29778952..5a2b375dd6 100644 --- a/Content.Server/GameTicking/GameTicker.GamePreset.cs +++ b/Content.Server/GameTicking/GameTicker.GamePreset.cs @@ -226,7 +226,7 @@ namespace Content.Server.GameTicking return false; } - if (HasComp(playerEntity)) + if (TryComp(playerEntity, out var comp) && !comp.CanGhostInteract) return false; if (mind.VisitingEntity != default)