diff options
| author | mat <git@matdoes.dev> | 2025-09-22 11:12:37 -1100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-09-22 11:12:37 -1100 |
| commit | 8927a0fe65f5f89b4459956f19989f27f1e0981c (patch) | |
| tree | 0919acd5251b4138b29eb68d20b6a0588c1a54f5 /azalea-client/src/plugins/interact | |
| parent | aefa908e32032616cb356e7f4165cbb8922edbcf (diff) | |
| download | azalea-drasl-8927a0fe65f5f89b4459956f19989f27f1e0981c.tar.xz | |
Fix pathfinding on farmland
closes #250
Diffstat (limited to 'azalea-client/src/plugins/interact')
| -rw-r--r-- | azalea-client/src/plugins/interact/pick.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/azalea-client/src/plugins/interact/pick.rs b/azalea-client/src/plugins/interact/pick.rs index 85e20376..ae6c9502 100644 --- a/azalea-client/src/plugins/interact/pick.rs +++ b/azalea-client/src/plugins/interact/pick.rs @@ -166,13 +166,8 @@ pub fn pick(opts: PickOpts<'_, '_, '_, '_, '_>) -> HitResult { // TODO: ender dragon has extra logic here. also, we shouldn't be able to pick // spectators. if let Ok((armor_stand_marker, arrow_in_ground)) = opts.pickable_query.get(entity) { - if armor_stand_marker == Some(&ArmorStandMarker(true)) - || arrow_in_ground == Some(&InGround(true)) - { - false - } else { - true - } + !(armor_stand_marker == Some(&ArmorStandMarker(true)) + || arrow_in_ground == Some(&InGround(true))) } else { false } |
