Fix master (#22757)
This commit is contained in:
parent
0088530249
commit
8d04ad911b
|
|
@ -112,8 +112,13 @@ namespace Content.Server.RoundEnd
|
|||
/// </summary>
|
||||
public EntityUid? GetCentcomm()
|
||||
{
|
||||
AllEntityQuery<StationCentcommComponent>().MoveNext(out var centcomm);
|
||||
return centcomm == null ? null : _mapManager.GetMapEntityId(centcomm.MapId);
|
||||
if (AllEntityQuery<StationCentcommComponent, TransformComponent>()
|
||||
.MoveNext(out var centcomm, out var xform))
|
||||
{
|
||||
return xform.MapUid;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool CanCallOrRecall()
|
||||
|
|
|
|||
Loading…
Reference in New Issue