Fix inability to engage with economic Cargonia (#36668)

Fix inability to engage with cargo supremacy
This commit is contained in:
Nemanja
2025-04-17 22:06:29 -04:00
committed by GitHub
parent 1af3c599c5
commit 57bbf76ec6
6 changed files with 29 additions and 27 deletions

View File

@@ -51,7 +51,7 @@ namespace Content.Server.Cargo.Systems
return;
_audio.PlayPvs(ApproveSound, uid);
UpdateBankAccount((stationUid.Value, bank), (int) price, CreateAccountDistribution(component.Account, bank));
UpdateBankAccount((stationUid.Value, bank), (int) price, component.Account);
QueueDel(args.Used);
args.Handled = true;
}
@@ -203,7 +203,7 @@ namespace Content.Server.Cargo.Systems
$"{ToPrettyString(player):user} approved order [orderId:{order.OrderId}, quantity:{order.OrderQuantity}, product:{order.ProductId}, requester:{order.Requester}, reason:{order.Reason}] on account {component.Account} with balance at {accountBalance}");
orderDatabase.Orders[component.Account].Remove(order);
UpdateBankAccount((station.Value, bank), -cost, CreateAccountDistribution(component.Account, bank));
UpdateBankAccount((station.Value, bank), -cost, component.Account);
UpdateOrders(station.Value);
}