Skip to content

Commit

Permalink
fix(stats): isEnchanted()
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Dec 15, 2024
1 parent 3804a16 commit dabb0fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/server/constants/NotEnoughUpdates-REPO
2 changes: 1 addition & 1 deletion src/lib/shared/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit dabb0fd

Please sign in to comment.