]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Aghosts can now /ghost (#29360)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Tue, 9 Jul 2024 16:55:47 +0000 (18:55 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Jul 2024 16:55:47 +0000 (18:55 +0200)
I will not be subjected to criminal abuse

Content.Server/GameTicking/GameTicker.GamePreset.cs

index 6e297789528d2e32329379bc57b8b843c5a5f776..5a2b375dd68c88fe206dd5da2b19065d0e308ff6 100644 (file)
@@ -226,7 +226,7 @@ namespace Content.Server.GameTicking
                 return false;
             }
 
-            if (HasComp<GhostComponent>(playerEntity))
+            if (TryComp<GhostComponent>(playerEntity, out var comp) && !comp.CanGhostInteract)
                 return false;
 
             if (mind.VisitingEntity != default)