0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 16:10:43 -05:00

directly reference equipment id instead of using .find

This commit is contained in:
sgtlaggy 2024-12-01 15:27:00 -08:00
parent 93c34bd189
commit 22b57b1377

View File

@ -427,8 +427,7 @@ export class ProfileController {
},
skills: playerPmc.Skills,
equipment: {
// Default inventory tpl
Id: playerPmc.Inventory.items.find((item) => item._tpl === ItemTpl.INVENTORY_DEFAULT)._id,
Id: playerPmc.Inventory.equipment,
Items: playerPmc.Inventory.items,
},
achievements: playerPmc.Achievements,