Fix master (#22757)

This commit is contained in:
metalgearsloth 2023-12-20 10:21:53 +11:00 committed by Debug
parent 0088530249
commit 8d04ad911b
1 changed files with 7 additions and 2 deletions

View File

@ -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()