Disable GridFillComponent on some tests (#15757)

This commit is contained in:
Leon Friedrich
2023-04-25 11:48:29 +12:00
committed by GitHub
parent 4223fc00ba
commit 110060678f
9 changed files with 59 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.Shuttles.Components;
using Content.Shared.CCVar;
namespace Content.Server.Shuttles.Systems;
@@ -18,6 +19,9 @@ public sealed partial class ShuttleSystem
return;
}
if (_cfg.GetCVar(CCVars.DisableGridFill))
return;
// Spawn on a dummy map and try to dock if possible, otherwise dump it.
var mapId = _mapManager.CreateMap();
var valid = false;

View File

@@ -5,6 +5,7 @@ using Content.Shared.GameTicking;
using Content.Shared.Shuttles.Systems;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Robust.Shared.Configuration;
using Robust.Shared.Map;
using Robust.Shared.Map.Components;
using Robust.Shared.Physics;
@@ -31,6 +32,7 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
[Dependency] private readonly StunSystem _stuns = default!;
[Dependency] private readonly ThrusterSystem _thruster = default!;
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
private ISawmill _sawmill = default!;