Clear cargo orders on approval (#24278)
This commit is contained in:
@@ -216,6 +216,7 @@ namespace Content.Server.Cargo.Systems
|
|||||||
_adminLogger.Add(LogType.Action, LogImpact.Low,
|
_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}");
|
$"{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);
|
DeductFunds(bank, cost);
|
||||||
UpdateOrders(station.Value, orderDatabase);
|
UpdateOrders(station.Value, orderDatabase);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user