diff --git a/common/src/states/utils.rs b/common/src/states/utils.rs index f266c78190..0fc8975529 100644 --- a/common/src/states/utils.rs +++ b/common/src/states/utils.rs @@ -340,7 +340,7 @@ pub fn handle_orientation(data: &JoinData, update: &mut StateUpdate, efficiency: .or_else(|| { data.physics .on_ground - .then_some(data.ori.look_dir().to_horizontal().unwrap_or_default()) + .map(|_| data.ori.look_dir().to_horizontal().unwrap_or_default()) }) { let rate = {