]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Clear cargo orders on approval (#24278)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 19 Jan 2024 09:32:33 +0000 (20:32 +1100)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2024 09:32:33 +0000 (20:32 +1100)
Content.Server/Cargo/Systems/CargoSystem.Orders.cs

index c0d598a5d002463c9a2d1423b73cffee183c6e1b..9a547bb578a14bdfc65b207816ec4e0bbaa6cd69 100644 (file)
@@ -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);
         }