From f69088012b8b780a7453d5cc90a2ea7674c8a482 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Tue, 27 Oct 2026 22:32:05 +0100 Subject: [PATCH] Format the hostile mob fixes --- crates/horizon-client/src/game/potions.rs | 6 +----- crates/horizon-client/src/game/wither.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/horizon-client/src/game/potions.rs b/crates/horizon-client/src/game/potions.rs index 635277ff8..8bcbf0561 100644 --- a/crates/horizon-client/src/game/potions.rs +++ b/crates/horizon-client/src/game/potions.rs @@ -1230,11 +1230,7 @@ impl Game<'_> { let m = &mut self.mobs[i]; if harm { let harm = m.potion_harm((intensity * f64::from(6 << amp) + 0.5) as i32 as f32); - m.hurt( - harm, - Some([at.x, at.y, at.z]), - &mut self.world.random, - ); + m.hurt(harm, Some([at.x, at.y, at.z]), &mut self.world.random); } else { m.health = (m.health + (intensity * f64::from(4 << amp) + 0.5) as i32 as f32) .min(m.kind.max_health); diff --git a/crates/horizon-client/src/game/wither.rs b/crates/horizon-client/src/game/wither.rs index 83772d5fa..2f69ce7f1 100644 --- a/crates/horizon-client/src/game/wither.rs +++ b/crates/horizon-client/src/game/wither.rs @@ -121,7 +121,7 @@ impl Game<'_> { } /// `WitherSkull.onHitEntity` / `onHit`: 8 damage (healing the wither 5 /// when it kills), withering on a hit (10 seconds on Normal, 40 on Hard, -/// none on Easy), then a power 1 blast. + /// none on Easy), then a power 1 blast. pub(super) fn wither_skull_hit( &mut self, p: &Projectile,