Use string for arrivals map cvar (#15104)

This commit is contained in:
Morb
2023-04-03 05:25:31 -07:00
committed by GitHub
parent 43f35a32f0
commit fc61b9da62
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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.