diff --git a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs index 80e7cf71e09..cbe7b7078d3 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs @@ -329,9 +329,16 @@ private void OnPalletSale(EntityUid uid, CargoPalletConsoleComponent component, return; } - SellPallets(gridUid, null, out var price); - var stackPrototype = _protoMan.Index(component.CashType); - _stack.Spawn((int) price, stackPrototype, uid.ToCoordinates()); + // Delta-V change, on sale, add cash to the stations bank account instead of throwing it on the floor + var stationUid = _station.GetOwningStation(uid); + + if (TryComp(stationUid, out var bank)) + { + SellPallets(gridUid, null, out var amount); + bank.Balance += (int) amount; + } + // End of Delta-V change + UpdatePalletConsoleInterface(uid); }