diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 8536bacd..4a426b32 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -332,18 +332,18 @@ export const getInventoryResponse = async ( inventoryResponse.FlavourItems.push({ ItemType: uniqueName }); } }); + } - if (config.unlockAllSkins) { - const ownedWeaponSkins = new Set(inventoryResponse.WeaponSkins.map(x => x.ItemType)); - for (const [uniqueName, meta] of Object.entries(ExportCustoms)) { - if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) { - inventoryResponse.WeaponSkins.push({ - ItemId: { - $oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0") - }, - ItemType: uniqueName - }); - } + if (config.unlockAllSkins) { + const ownedWeaponSkins = new Set(inventoryResponse.WeaponSkins.map(x => x.ItemType)); + for (const [uniqueName, meta] of Object.entries(ExportCustoms)) { + if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) { + inventoryResponse.WeaponSkins.push({ + ItemId: { + $oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0") + }, + ItemType: uniqueName + }); } } }