From 6b24a20ee18fd051c440a16d4d0a9fe1a023da61 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Sat, 27 Sep 2025 22:00:48 +0200 Subject: [PATCH] Update saveLoadoutService.ts --- src/services/saveLoadoutService.ts | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/services/saveLoadoutService.ts b/src/services/saveLoadoutService.ts index 1c4dcbd4..506a5444 100644 --- a/src/services/saveLoadoutService.ts +++ b/src/services/saveLoadoutService.ts @@ -139,16 +139,22 @@ export const handleInventoryItemConfigChange = async ( case "WeaponSkins": { const itemEntries = equipment as IItemEntry; for (const [itemId, itemConfigEntries] of Object.entries(itemEntries)) { - const inventoryItem = inventory.WeaponSkins.id(itemId); - if (!inventoryItem) { - logger.warn(`inventory item WeaponSkins not found with id ${itemId}`); - continue; - } - if ("Favorite" in itemConfigEntries) { - inventoryItem.Favorite = itemConfigEntries.Favorite; - } - if ("IsNew" in itemConfigEntries) { - inventoryItem.IsNew = itemConfigEntries.IsNew; + if (itemId.startsWith("ca70ca70ca70ca70")) { + logger.warn( + `unlockAllSkins does not work with favoriting items because you don't actually own it` + ); + } else { + const inventoryItem = inventory.WeaponSkins.id(itemId); + if (!inventoryItem) { + logger.warn(`inventory item WeaponSkins not found with id ${itemId}`); + continue; + } + if ("Favorite" in itemConfigEntries) { + inventoryItem.Favorite = itemConfigEntries.Favorite; + } + if ("IsNew" in itemConfigEntries) { + inventoryItem.IsNew = itemConfigEntries.IsNew; + } } } break;