Skip to content

Commit

Permalink
Fix null crash due to initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Nov 17, 2024
1 parent e074728 commit fb6ad2f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public record Appearance(ItemStack item, boolean replaceFully) {
);

public Appearance {
item.remove(UDataComponentTypes.APPEARANCE);
if (UDataComponentTypes.APPEARANCE != null) {
item.remove(UDataComponentTypes.APPEARANCE);
}
}

public ItemStack unwrap(ItemStack stack) {
Expand Down

0 comments on commit fb6ad2f

Please sign in to comment.