Skip to content

Commit fb6ad2f

Browse files
committed
Fix null crash due to initialization order
1 parent e074728 commit fb6ad2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/minelittlepony/unicopia/item/component/Appearance.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public record Appearance(ItemStack item, boolean replaceFully) {
2424
);
2525

2626
public Appearance {
27-
item.remove(UDataComponentTypes.APPEARANCE);
27+
if (UDataComponentTypes.APPEARANCE != null) {
28+
item.remove(UDataComponentTypes.APPEARANCE);
29+
}
2830
}
2931

3032
public ItemStack unwrap(ItemStack stack) {

0 commit comments

Comments
 (0)