diff --git a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs index 5c99cbe24d1..61d1cf02939 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs @@ -43,7 +43,7 @@ private void InitializeShuttle() SubscribeLocalEvent(OnPalletUIOpen); SubscribeLocalEvent(OnRoundRestart); - SubscribeLocalEvent(OnStationInitialize); + SubscribeLocalEvent(OnStationInitialize); // DeltaV - trade station map Subs.CVar(_cfgManager, CCVars.GridFill, SetGridFill); } @@ -370,6 +370,7 @@ private void OnRoundRestart(RoundRestartCleanupEvent ev) CleanupTradeStation(); } + // DeltaV - begin trade station map private void OnStationInitialize(StationInitializedEvent args) { if (!HasComp(args.Station)) // No cargo, L @@ -378,6 +379,7 @@ private void OnStationInitialize(StationInitializedEvent args) if (_cfgManager.GetCVar(CCVars.GridFill)) SetupTradePost(); } + // DeltaV - end trade station map private void CleanupTradeStation() { @@ -392,6 +394,7 @@ private void CleanupTradeStation() CargoMap = null; } + // DeltaV - begin trade station map private void SetupTradePost() { if (CargoMap != null && _mapManager.MapExists(CargoMap.Value)) @@ -421,7 +424,6 @@ private void SetupTradePost() var shuttleComponent = EnsureComp(grid); shuttleComponent.AngularDamping = 10000; shuttleComponent.LinearDamping = 10000; - Dirty(shuttleComponent); } var mapUid = _mapManager.GetMapEntityId(CargoMap.Value); @@ -438,6 +440,7 @@ private void SetupTradePost() _console.RefreshShuttleConsoles(); } + // DeltaV - end trade station map } ///