Use correct buycount when buying from fence

This commit is contained in:
Dev 2024-01-16 12:08:30 +00:00
parent ca1df5ee71
commit 9daa706325

View File

@ -129,7 +129,7 @@ export class TradeHelper
const itemPurchased = traderAssorts.find((x) => x._id === buyRequestData.item_id); const itemPurchased = traderAssorts.find((x) => x._id === buyRequestData.item_id);
// Decrement trader item count // Decrement trader item count
itemPurchased.upd.StackObjectsCount -= buyRequestData.count; itemPurchased.upd.StackObjectsCount -= buyCount;
/// Pay for item /// Pay for item
output = this.paymentService.payMoney(pmcData, buyRequestData, sessionID, output); output = this.paymentService.payMoney(pmcData, buyRequestData, sessionID, output);