Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Update Content.Server/Communications/CommunicationsConsoleSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: VMSolidus <[email protected]>
  • Loading branch information
DoutorWhite and VMSolidus authored Aug 25, 2024
1 parent 6ecfbc6 commit 555c5df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Content.Server/Communications/CommunicationsConsoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,8 @@ private void OnToggleEmergencyMaintMessage(EntityUid uid, CommunicationsConsoleC
}
private void OnCallShuttleMessage(EntityUid uid, CommunicationsConsoleComponent comp, CommunicationsConsoleCallEmergencyShuttleMessage message)
{
if (!EntityManager.TryGetComponent(message.Actor, out ActorComponent? actor))
return;

if (!CanCallOrRecall(comp))
if (!EntityManager.TryGetComponent(message.Actor, out ActorComponent? actor)
|| !CanCallOrRecall(comp))
return;

var mob = message.Actor;
Expand Down

0 comments on commit 555c5df

Please sign in to comment.