Fixed barter traders that required multiple of a stack removing the entire stack instead

This commit is contained in:
Dev 2024-04-26 15:54:43 +01:00
parent dd6d7e192f
commit f566ea8620

View File

@ -65,7 +65,13 @@ export class PaymentService
if (!this.paymentHelper.isMoneyTpl(item._tpl))
{
// If the item is not money, remove it from the inventory.
this.inventoryHelper.removeItem(pmcData, item._id, sessionID, output);
this.inventoryHelper.removeItemByCount(
pmcData,
item._id,
request.scheme_items[index].count,
sessionID,
output,
);
request.scheme_items[index].count = 0;
}
else