Aghosts can now /ghost (#29360)

I will not be subjected to criminal abuse
This commit is contained in:
Errant
2024-07-09 18:55:47 +02:00
committed by GitHub
parent b511d8e180
commit 49128ba9d3

View 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)