diff options
| author | mat <git@matdoes.dev> | 2025-05-07 11:27:58 +0800 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-07 11:27:58 +0800 |
| commit | aa0256da102103eedc9897458dd81516962a80a3 (patch) | |
| tree | 9d01f879a7c75750acd8de0c308247c12bbeea9d /azalea/src/pathfinder/moves/basic.rs | |
| parent | e9452032bfc95cb7ad4a8798b13648e164536cf1 (diff) | |
| download | azalea-drasl-aa0256da102103eedc9897458dd81516962a80a3.tar.xz | |
upgrade rust version and fix clippy warnings
Diffstat (limited to 'azalea/src/pathfinder/moves/basic.rs')
| -rw-r--r-- | azalea/src/pathfinder/moves/basic.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 354472a7..fe0d81f5 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -173,10 +173,10 @@ fn execute_ascend_move(mut ctx: ExecuteCtx) { (-1, 0) => Some(properties::FacingCardinal::West), _ => None, }; - if let Some(expected_stair_facing) = expected_stair_facing { - if stair_facing == expected_stair_facing { - return; - } + if let Some(expected_stair_facing) = expected_stair_facing + && stair_facing == expected_stair_facing + { + return; } } |
