From 9daa706325cf30658efdbd26b4cb23f047d0b841 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 16 Jan 2024 12:08:30 +0000 Subject: [PATCH] Use correct buycount when buying from fence --- project/src/helpers/TradeHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/TradeHelper.ts b/project/src/helpers/TradeHelper.ts index 52c8af94..c333c35f 100644 --- a/project/src/helpers/TradeHelper.ts +++ b/project/src/helpers/TradeHelper.ts @@ -129,7 +129,7 @@ export class TradeHelper const itemPurchased = traderAssorts.find((x) => x._id === buyRequestData.item_id); // Decrement trader item count - itemPurchased.upd.StackObjectsCount -= buyRequestData.count; + itemPurchased.upd.StackObjectsCount -= buyCount; /// Pay for item output = this.paymentService.payMoney(pmcData, buyRequestData, sessionID, output);