mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fix null crash due to initialization order
This commit is contained in:
parent
e074728a13
commit
fb6ad2f25e
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue