diff --git a/src/index.ts b/src/index.ts index 7f9e44c..85d63a8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -105,6 +105,7 @@ function nestRecipe( const isGuildUpgrade = component.type === 'GuildUpgrade' const id = isGuildUpgrade ? recipeUpgradesMap[component.id] || component.id : component.id const componentRecipe = recipesMap[id] + const condensedLeyLineEssenceIds = [91224, 91137, 91222, 91171] // Just give back the component for currencies if (component.type === 'Currency') { @@ -132,6 +133,11 @@ function nestRecipe( : component } + // These items should not have components if they are components of each other + if (condensedLeyLineEssenceIds.includes(recipe.id) && condensedLeyLineEssenceIds.includes(id)) { + return component + } + // The component recipe is not nested yet, so we nest it now! if (!componentRecipe.nested) { recipesMap[id] = nestRecipe(componentRecipe, recipesMap, recipeUpgradesMap, decorationsMap)