Cleanup remaining IMapManager.MapExists uses (#37851)
Cleanup remaining IMapManager.MapExists uses
This commit is contained in:
@@ -90,7 +90,7 @@ namespace Content.Server.GameTicking
|
||||
/// </remarks>
|
||||
private void LoadMaps()
|
||||
{
|
||||
if (_mapManager.MapExists(DefaultMap))
|
||||
if (_map.MapExists(DefaultMap))
|
||||
return;
|
||||
|
||||
AddGamePresetRules();
|
||||
@@ -208,7 +208,7 @@ namespace Content.Server.GameTicking
|
||||
}
|
||||
|
||||
_metaData.SetEntityName(mapUid, proto.MapName);
|
||||
var g = new List<EntityUid> {grid.Value.Owner};
|
||||
var g = new List<EntityUid> { grid.Value.Owner };
|
||||
RaiseLocalEvent(new PostGameMapLoad(proto, mapId, g, stationName));
|
||||
return g;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ namespace Content.Server.GameTicking
|
||||
}
|
||||
|
||||
_metaData.SetEntityName(mapUid, proto.MapName);
|
||||
var g = new List<EntityUid> {grid.Value.Owner};
|
||||
var g = new List<EntityUid> { grid.Value.Owner };
|
||||
RaiseLocalEvent(new PostGameMapLoad(proto, mapId, g, stationName));
|
||||
return g;
|
||||
}
|
||||
@@ -308,7 +308,7 @@ namespace Content.Server.GameTicking
|
||||
throw new Exception($"Failed to load game-map grid {ev.GameMap.ID}");
|
||||
}
|
||||
|
||||
var g = new List<EntityUid> {grid.Value.Owner};
|
||||
var g = new List<EntityUid> { grid.Value.Owner };
|
||||
// TODO MAP LOADING use a new event?
|
||||
RaiseLocalEvent(new PostGameMapLoad(proto, targetMap, g, stationName));
|
||||
return g;
|
||||
@@ -390,7 +390,7 @@ namespace Content.Server.GameTicking
|
||||
HumanoidCharacterProfile profile;
|
||||
if (_prefsManager.TryGetCachedPreferences(userId, out var preferences))
|
||||
{
|
||||
profile = (HumanoidCharacterProfile) preferences.SelectedCharacter;
|
||||
profile = (HumanoidCharacterProfile)preferences.SelectedCharacter;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user