Point an explosion's hurt tilt at the blast

This commit is contained in:
Kacpherek
2026-10-26 22:04:40 +01:00
parent 4825e537cc
commit ed9fdb5208
@@ -305,6 +305,12 @@ impl Game<'_> {
)
{
outcome = o;
// dealDefaultKnockback's `indicateDamage` points at the blast
// (the source position), not the no-direction fallback.
if o.knockback && o.blocked <= 0.0 {
p.health
.indicate_damage(center[0] - feet[0], center[2] - feet[2], p.yaw);
}
}
if !spectator && !(creative && flying) {
p.velocity = Vec3::new(