aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/interact
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/interact')
-rw-r--r--azalea-client/src/plugins/interact/pick.rs9
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
}