@@ -76,8 +76,9 @@ pub struct LivingEntity {
7676 pub wool_color : Option < u8 > ,
7777 /// Sheep wool shorn / bogged mushrooms shorn.
7878 pub is_sheared : bool ,
79- /// Registry/wire variant slot; meaning is per-kind (pool index for
80- /// cow/chicken). Normalized in `EntityStore::set_variant`.
79+ /// Registry/wire variant slot; meaning is per-kind. Holder-backed values
80+ /// are pre-resolved to pool indices by the net handler; raw-int kinds are
81+ /// normalized in `EntityStore::apply_entity_data`.
8182 pub variant : u32 ,
8283 /// Chicken wing-flap state (vanilla `Chicken.aiStep`): `flap` is the
8384 /// unbounded wing-cycle phase, `flap_speed` the 0..1 amplitude.
@@ -796,10 +797,8 @@ impl EntityStore {
796797 ( EntityKind :: Enderman , 17 , Bool ( b) ) => entity. is_creepy = b,
797798 ( EntityKind :: Witch , 17 , Bool ( b) ) => entity. witch_drinking = b,
798799 // Zombie-family underwater conversion / zombie villager curing.
799- ( EntityKind :: Zombie | EntityKind :: Husk | EntityKind :: Drowned , 18 , Bool ( b) ) => {
800- entity. is_converting = b
801- }
802- ( EntityKind :: ZombieVillager , 19 , Bool ( b) ) => entity. is_converting = b,
800+ ( EntityKind :: Zombie | EntityKind :: Husk | EntityKind :: Drowned , 18 , Bool ( b) )
801+ | ( EntityKind :: ZombieVillager , 19 , Bool ( b) ) => entity. is_converting = b,
803802 ( EntityKind :: Villager , 18 , Int ( c) ) => entity. unhappy_counter = c,
804803 // Vanilla sparse rabbit id map: 99 = evil, unknown ids fall back
805804 // to brown.
0 commit comments