Fix master (#22757)
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user