From f82fd23f2c87b7cab852bdc2563cfa30c2d2a6dd Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 19 Jan 2024 20:32:33 +1100 Subject: [PATCH] Clear cargo orders on approval (#24278) --- Content.Server/Cargo/Systems/CargoSystem.Orders.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Content.Server/Cargo/Systems/CargoSystem.Orders.cs b/Content.Server/Cargo/Systems/CargoSystem.Orders.cs index c0d598a5d0..9a547bb578 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Orders.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Orders.cs @@ -216,6 +216,7 @@ namespace Content.Server.Cargo.Systems _adminLogger.Add(LogType.Action, LogImpact.Low, $"{ToPrettyString(player):user} approved order [orderId:{order.OrderId}, quantity:{order.OrderQuantity}, product:{order.ProductId}, requester:{order.Requester}, reason:{order.Reason}] with balance at {bank.Balance}"); + orderDatabase.Orders.Remove(order); DeductFunds(bank, cost); UpdateOrders(station.Value, orderDatabase); }