Fix the missing soft armor inserts. (!409)

Related to the error (https://dev.sp-tarkov.com/SPT/Issues/issues/820)

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/409
Co-authored-by: DenisZhmakin <den.zhmakin.00@gmail.com>
Co-committed-by: DenisZhmakin <den.zhmakin.00@gmail.com>
This commit is contained in:
DenisZhmakin 2024-09-17 15:41:47 +00:00 committed by chomp
parent 12a79488d8
commit a916425275

View File

@ -667,7 +667,7 @@ export class InsuranceController {
public insureSoftInserts(item: Item, pmcData: IPmcData, body: IInsureRequestData): void {
const softInsertIds = this.itemHelper.getSoftInsertSlotIds();
const softInsertSlots = pmcData.Inventory.items.filter(
(item) => item.parentId === item._id && softInsertIds.includes(item.slotId.toLowerCase()),
(_item) => _item.parentId === item._id && softInsertIds.includes(_item.slotId.toLowerCase())
);
for (const softInsertSlot of softInsertSlots) {