Use string for arrivals map cvar (#15104)
This commit is contained in:
@@ -321,7 +321,7 @@ public sealed class ArrivalsSystem : EntitySystem
|
||||
{
|
||||
var mapId = _mapManager.CreateMap();
|
||||
|
||||
if (!_loader.TryLoad(mapId, _cfgManager.GetCVar(CCVars.ArrivalsMap).ToString(), out var uids))
|
||||
if (!_loader.TryLoad(mapId, _cfgManager.GetCVar(CCVars.ArrivalsMap), out var uids))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1064,8 +1064,8 @@ namespace Content.Shared.CCVar
|
||||
/// <summary>
|
||||
/// The map to use for the arrivals station.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<ResourcePath> ArrivalsMap =
|
||||
CVarDef.Create("shuttle.arrivals_map", new ResourcePath("/Maps/Misc/terminal.yml"), CVar.SERVERONLY);
|
||||
public static readonly CVarDef<string> ArrivalsMap =
|
||||
CVarDef.Create("shuttle.arrivals_map", "/Maps/Misc/terminal.yml", CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Cooldown between arrivals departures. This should be longer than the FTL time or it will double cycle.
|
||||
|
||||
Reference in New Issue
Block a user