From dabb0fd9aa840a9dd17c22d33693339ac10c64c6 Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Sun, 15 Dec 2024 19:47:05 +0100 Subject: [PATCH] fix(stats): isEnchanted() --- src/lib/server/constants/NotEnoughUpdates-REPO | 2 +- src/lib/shared/helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/server/constants/NotEnoughUpdates-REPO b/src/lib/server/constants/NotEnoughUpdates-REPO index a3a65484..ee6bd8cb 160000 --- a/src/lib/server/constants/NotEnoughUpdates-REPO +++ b/src/lib/server/constants/NotEnoughUpdates-REPO @@ -1 +1 @@ -Subproject commit a3a65484ae88015b0de76447493522afdb93cc81 +Subproject commit ee6bd8cbf81367108c03f1ad6a0330c40391c61a diff --git a/src/lib/shared/helper.ts b/src/lib/shared/helper.ts index 82a41464..3ec3689f 100644 --- a/src/lib/shared/helper.ts +++ b/src/lib/shared/helper.ts @@ -150,7 +150,7 @@ export function isEnchanted(item: ProcessedItem): boolean { return true; } - if ("tag" in item && Array.isArray(item.tag.ench)) { + if ("tag" in item && (Array.isArray(item.tag.ench) || item.tag.ExtraAttributes?.enchantments)) { return true; }