1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

fix ChickenVariant data component

This commit is contained in:
mat 2025-04-12 13:37:27 -12:00
parent 3112dc3ea0
commit 31b143f821

View file

@ -1262,9 +1262,15 @@ impl DataComponent for CowVariant {
}
#[derive(Clone, PartialEq, AzBuf)]
pub struct ChickenVariant {
pub variant: azalea_registry::ChickenVariant,
pub enum ChickenVariant {
Registry(azalea_registry::ChickenVariant),
Direct(ChickenVariantData),
}
impl DataComponent for ChickenVariant {
const KIND: DataComponentKind = DataComponentKind::ChickenVariant;
}
#[derive(Clone, PartialEq, AzBuf)]
pub struct ChickenVariantData {
// not a typo, as of 1.21.5 chicken variants do actually seem to be encoded like this
pub registry: azalea_registry::ChickenVariant,
}