Skip to content

Commit

Permalink
Aghosts can now /ghost (space-wizards#29360)
Browse files Browse the repository at this point in the history
I will not be subjected to criminal abuse
  • Loading branch information
Errant-4 authored Jul 9, 2024
1 parent b511d8e commit 49128ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTicker.GamePreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public bool OnGhostAttempt(EntityUid mindId, bool canReturnGlobal, bool viaComma
return false;
}

if (HasComp<GhostComponent>(playerEntity))
if (TryComp<GhostComponent>(playerEntity, out var comp) && !comp.CanGhostInteract)
return false;

if (mind.VisitingEntity != default)
Expand Down

0 comments on commit 49128ba

Please sign in to comment.