Play the hostile swim sound for swimming monsters and hoglins

Monster and Hoglin override getSwimSound with entity.hostile.swim; Horizon played the generic swim sound for them.
This commit is contained in:
Kacpherek
2026-10-27 22:21:28 +01:00
parent 154aaa2051
commit 73ad5f1dbb
+2
View File
@@ -2113,6 +2113,8 @@ pub fn swim_sound(m: &Mob) -> &'static str {
Species::Nautilus => "entity.nautilus.swim",
Species::ZombieNautilus => "entity.zombie_nautilus.swim",
Species::Turtle => "entity.turtle.swim",
// Monster.getSwimSound, and Hoglin's own override of it.
s if s == Species::Hoglin || is_monster(s) => "entity.hostile.swim",
_ => "entity.generic.swim",
}
}