mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 17:21:49 -10:00
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 <[email protected]>
This commit is contained in:
1 parent
91de744250
commit
70068076f2
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user