@@ -815,12 +815,13 @@ impl EntityStore {
815815 entity. is_tame = f & 0x04 != 0 ;
816816 }
817817 ( EntityKind :: Wolf , 20 , Bool ( b) ) => entity. is_interested = b,
818- ( EntityKind :: Wolf , 21 , Int ( c) ) => entity. collar_color = c as u8 & 0x0F ,
818+ ( EntityKind :: Wolf , 21 , Int ( c) ) | ( EntityKind :: Cat , 23 , Int ( c) ) => {
819+ entity. collar_color = c as u8 & 0x0F
820+ }
819821 ( EntityKind :: Cat , 21 , Bool ( b) ) => entity. is_lying = b,
820822 // Vanilla persistent-anger end time (game-time tick).
821823 ( EntityKind :: Wolf , 22 , Long ( t) ) => entity. anger_end_time = t,
822824 ( EntityKind :: Cat , 22 , Bool ( b) ) => entity. relax_state_one = b,
823- ( EntityKind :: Cat , 23 , Int ( c) ) => entity. collar_color = c as u8 & 0x0F ,
824825 _ => { }
825826 }
826827 }
@@ -838,9 +839,6 @@ impl EntityStore {
838839 if let Some ( entity) = self . living . get_mut ( & id)
839840 && entity. entity_type == kind
840841 {
841- // Holder-backed indices (cow/chicken/wolf/cat) are pre-resolved
842- // by the net handler; the rabbit's raw-int map lives in
843- // `apply_entity_data`.
844842 entity. variant = raw;
845843 }
846844 }
0 commit comments