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:
parent
12a79488d8
commit
a916425275
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user