From 3cb736e7c534218d8b8174e1473c2a3d8837f76c Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 27 Mar 2024 01:58:14 +0100 Subject: [PATCH] Fix #496 recipe preview --- src/app/components/previews/RecipePreview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/previews/RecipePreview.tsx b/src/app/components/previews/RecipePreview.tsx index 620eab72..4b1320f0 100644 --- a/src/app/components/previews/RecipePreview.tsx +++ b/src/app/components/previews/RecipePreview.tsx @@ -194,7 +194,7 @@ function allIngredientChoices(ingredient: any, itemTags: Map): Item try { return [new ItemStack(Identifier.parse(ingredient.item), 1)] } catch (e) {} - } else if (typeof (ingredient.tag === 'string')) { + } else if (typeof ingredient.tag === 'string') { const tag: any = itemTags.get(ingredient.tag.replace(/^minecraft:/, '')) if (typeof tag === 'object' && tag !== null && Array.isArray(tag.values)) { return tag.values.flatMap((value: any) => {