Fix master (#22757)

This commit is contained in:
metalgearsloth
2023-12-20 10:21:53 +11:00
committed by GitHub
parent 1679ef1004
commit 3293892941

View File

@@ -112,8 +112,13 @@ namespace Content.Server.RoundEnd
/// </summary> /// </summary>
public EntityUid? GetCentcomm() public EntityUid? GetCentcomm()
{ {
AllEntityQuery<StationCentcommComponent>().MoveNext(out var centcomm); if (AllEntityQuery<StationCentcommComponent, TransformComponent>()
return centcomm == null ? null : _mapManager.GetMapEntityId(centcomm.MapId); .MoveNext(out var centcomm, out var xform))
{
return xform.MapUid;
}
return null;
} }
public bool CanCallOrRecall() public bool CanCallOrRecall()