diff --git a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs index a20b5c723f4..44e2b2c7d05 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs @@ -360,6 +360,7 @@ private void OnPalletSale(EntityUid uid, CargoPalletConsoleComponent component, private void OnRoundRestart(RoundRestartCleanupEvent ev) { + Reset(); CleanupTradeStation(); } @@ -383,19 +384,6 @@ private void CleanupTradeStation() _mapManager.DeleteMap(CargoMap.Value); CargoMap = null; - - // Shuttle may not have been in the cargo dimension (e.g. on the station map) so need to delete. - var query = AllEntityQuery(); - - while (query.MoveNext(out var uid, out var _)) - { - if (TryComp(uid, out var station)) - { - station.Shuttle = null; - } - - QueueDel(uid); - } } private void SetupTradePost() @@ -426,7 +414,8 @@ private void SetupTradePost() var shuttleComponent = EnsureComp(grid); shuttleComponent.AngularDamping = 10000; - shuttleComponent.LinearDamping = 10000; // This shit ain't going nowhere + shuttleComponent.LinearDamping = 10000; + Dirty(shuttleComponent); } var mapUid = _mapManager.GetMapEntityId(CargoMap.Value);