Dry a dolphin out with dry_out, not drowning

Dolphin.tick hurts a dolphin whose moistness ran out with damageSources().dryOut(), so the
death message says it dried out; Horizon used the drown source, which reads as drowning.
This commit is contained in:
MSedgeMC committed 2026-11-01 20:08:12 +00:00
1 parent ac2f223719
commit 74ae0056e8
1 file changed
+3 -1
+3 -1
View File
@@ -339,7 +339,9 @@ pub fn ai_step(m: &mut Mob, w: &MobWorld, events: &mut Vec<MobEvent>) {
} else {
m.extra.counter -= 1;
if m.extra.counter <= 0 {
m.damage(1.0, super::Damage::of(super::DamageKind::Drown));
// `Dolphin.tick` hurts with `damageSources().dryOut()`: the
// death message names dehydration, not drowning.
m.damage(1.0, super::Damage::of(super::DamageKind::DryOut));
}
if m.on_ground {
let (a, b) = (m.random.next_float(), m.random.next_float());