Fix equippable component writing (#868)
Some checks failed
Java CI with Gradle / build (push) Has been cancelled
Deploy / build (push) Has been cancelled

This commit is contained in:
Eclipse 2024-11-07 11:03:03 +00:00 committed by GitHub
parent 88188c5b39
commit 8150091888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,6 +158,7 @@ public class ItemCodecHelper extends MinecraftCodecHelper {
} }
this.writeNullable(buf, equippable.model(), this::writeResourceLocation); this.writeNullable(buf, equippable.model(), this::writeResourceLocation);
this.writeNullable(buf, equippable.cameraOverlay(), this::writeResourceLocation);
this.writeNullable(buf, equippable.allowedEntities(), this::writeHolderSet); this.writeNullable(buf, equippable.allowedEntities(), this::writeHolderSet);
buf.writeBoolean(equippable.dispensable()); buf.writeBoolean(equippable.dispensable());
buf.writeBoolean(equippable.swappable()); buf.writeBoolean(equippable.swappable());