From 8927a0fe65f5f89b4459956f19989f27f1e0981c Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 22 Sep 2025 11:12:37 -1100 Subject: Fix pathfinding on farmland closes #250 --- azalea-client/src/plugins/interact/pick.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'azalea-client/src/plugins/interact') 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 } -- cgit v1.2.3