From 70068076f23c214f438174c8de337a5570c925ee Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 27 Oct 2026 22:24:39 +0100 Subject: [PATCH] Keep set_baby's doc comment on set_baby The two new functions went in between it and its comment. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/mobs/finalize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/horizon-client/src/mobs/finalize.rs b/crates/horizon-client/src/mobs/finalize.rs index 6be8f1fdc..d698a3683 100644 --- a/crates/horizon-client/src/mobs/finalize.rs +++ b/crates/horizon-client/src/mobs/finalize.rs @@ -816,7 +816,6 @@ fn age_boundary_reached(m: &mut Mob) { _ => {} } } -/// `setBaby`: AgeableMob through its age, zombies, piglins and zoglins. /// `SpawnEggItem.spawnsEntity`: the spawn egg is for the mob's own kind, so /// it is used on it (`Mob.checkAndHandleImportantInteractions`). pub fn spawn_egg_is_for(egg: &str, kind: &str) -> bool { @@ -833,6 +832,7 @@ pub fn spawn_egg_offspring(child: &mut Mob, species: Species, variant: u8, color child.extra.color = color; } } +/// `setBaby`: AgeableMob through its age, zombies, piglins and zoglins. pub fn set_baby(m: &mut Mob, baby: bool) { let s = m.species(); if ageable(s) {