mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Fix the missing soft armor inserts. (!409)
Related to the error (SPT/Issues#820) Reviewed-on: SPT/Server#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 {
|
public insureSoftInserts(item: Item, pmcData: IPmcData, body: IInsureRequestData): void {
|
||||||
const softInsertIds = this.itemHelper.getSoftInsertSlotIds();
|
const softInsertIds = this.itemHelper.getSoftInsertSlotIds();
|
||||||
const softInsertSlots = pmcData.Inventory.items.filter(
|
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) {
|
for (const softInsertSlot of softInsertSlots) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user