diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index d04e6d648..96bf98429 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -4688,7 +4688,6 @@ impl Game<'_> { player.dimensions.eye_height }; self.eye += (camera_eye.unwrap_or(eye_height) - self.eye) * 0.5; - let crouching = player.pose == horizon_client::pose::Pose::Crouching; // `LivingEntity.baseTick` (Soul Speed) comes before `aiStep` (the // glide's wear): both draw from the level random. if let Some((at, velocity)) = self.tick_soul_speed() { @@ -4724,10 +4723,12 @@ impl Game<'_> { MotionEvent::HurtSound(sound) => self.player_hurt_sound(sound, feet), MotionEvent::Emission { state, in_water, .. - } if !crouching => { + } => { let sounds = self.res.facts().get(state).sounds.clone(); // Entity.playStepSound: the block's step sound at 0.15 volume, - // muffled under the swim sound in water. + // muffled under the swim sound in water. Whether it plays is + // Player.getMovementEmission's call (shift on the ground), + // not the pose: a forced crouch still steps. let (volume, pitch) = if in_water { (sounds.volume * 0.05, sounds.pitch * 0.8) } else { diff --git a/crates/horizon-client/src/game/remote.rs b/crates/horizon-client/src/game/remote.rs index d7716c95e..d914fd47a 100644 --- a/crates/horizon-client/src/game/remote.rs +++ b/crates/horizon-client/src/game/remote.rs @@ -3384,13 +3384,12 @@ impl Game<'_> { let events = std::mem::take(&mut player.events); self.previous_eye = self.eye; self.eye += (player.dimensions.eye_height - self.eye) * 0.5; - let crouching = player.pose == horizon_client::pose::Pose::Crouching; let feet = [player.position.x, player.position.y, player.position.z]; for event in events { match event { horizon_client::motion::MotionEvent::Emission { state, in_water, .. - } if !crouching => { + } => { let sounds = self.res.facts().get(state).sounds.clone(); // Player.playStepSound: muffled under the swim sound in water. let (volume, pitch) = if in_water {