Fix cargo trading post (#19656)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Linq;
|
||||
using Content.Server.Cargo.Components;
|
||||
using Content.Server.GameTicking.Events;
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Server.Shuttles.Events;
|
||||
using Content.Shared.Stacks;
|
||||
@@ -41,6 +42,8 @@ public sealed partial class CargoSystem
|
||||
SubscribeLocalEvent<CargoPalletConsoleComponent, BoundUIOpenedEvent>(OnPalletUIOpen);
|
||||
|
||||
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRoundRestart);
|
||||
SubscribeLocalEvent<RoundStartingEvent>(OnRoundStart);
|
||||
|
||||
_cfgManager.OnValueChanged(CCVars.GridFill, SetGridFill);
|
||||
}
|
||||
|
||||
@@ -371,7 +374,10 @@ public sealed partial class CargoSystem
|
||||
{
|
||||
Reset();
|
||||
CleanupCargoShuttle();
|
||||
}
|
||||
|
||||
private void OnRoundStart(RoundStartingEvent ev)
|
||||
{
|
||||
if (_cfgManager.GetCVar(CCVars.GridFill))
|
||||
SetupCargoShuttle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user