Skip to content

Commit

Permalink
Fix broken/damaged predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipseisoffline committed Jan 18, 2025
1 parent dee7b5a commit 6705513
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private static boolean isDamaged(DataComponents components) {
}

private static boolean isDamageableItem(DataComponents components) {
return components.getOrDefault(DataComponentType.UNBREAKABLE, false) && components.getOrDefault(DataComponentType.MAX_DAMAGE, 0) > 0;
return components.get(DataComponentType.UNBREAKABLE) == null && components.getOrDefault(DataComponentType.MAX_DAMAGE, 0) > 0;
}

private CustomItemTranslator() {
Expand Down

0 comments on commit 6705513

Please sign in to comment.