Fixed barter traders that required multiple of a stack removing the entire stack instead
This commit is contained in:
parent
dd6d7e192f
commit
f566ea8620
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user