Trading post doesn't try to spawn in the lobby
I love tests!!!
This commit is contained in:
parent
54006e46e6
commit
d0fb9c800d
|
|
@ -1,5 +1,6 @@
|
|||
using System.Linq;
|
||||
using Content.Server.Cargo.Components;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.GameTicking.Events;
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Server.Station.Systems;
|
||||
|
|
@ -50,7 +51,7 @@ public sealed partial class CargoSystem
|
|||
|
||||
private void SetGridFill(bool obj)
|
||||
{
|
||||
if (obj)
|
||||
if (obj && _ticker.RunLevel != GameRunLevel.PreRoundLobby) // Ensure run level is in game
|
||||
{
|
||||
SetupTradePost();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using Content.Server.Access.Systems;
|
||||
using Content.Server.Cargo.Components;
|
||||
using Content.Server.DeviceLinking.Systems;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Paper;
|
||||
using Content.Server.Popups;
|
||||
using Content.Server.Shuttles.Systems;
|
||||
|
|
@ -50,6 +51,7 @@ public sealed partial class CargoSystem : SharedCargoSystem
|
|||
[Dependency] private readonly IComponentFactory _factory = default!;
|
||||
[Dependency] private readonly MapLoaderSystem _mapLoader = default!;
|
||||
[Dependency] private readonly RadioSystem _radio = default!;
|
||||
[Dependency] private readonly GameTicker _ticker = default!; // DeltaV - Used to make sure the trading post doens't load in the lobby :<
|
||||
|
||||
private EntityQuery<TransformComponent> _xformQuery;
|
||||
private EntityQuery<CargoSellBlacklistComponent> _blacklistQuery;
|
||||
|
|
|
|||
Loading…
Reference in New Issue