diff --git a/crates/horizon-client/src/game/block_entity_anims.rs b/crates/horizon-client/src/game/block_entity_anims.rs index da788bc5b..fc0e5e827 100644 --- a/crates/horizon-client/src/game/block_entity_anims.rs +++ b/crates/horizon-client/src/game/block_entity_anims.rs @@ -50,12 +50,12 @@ impl Game<'_> { } Some(Ticker::Bell) => { let gathered = self.bell_gather(pos); - let rung = self - .be_anims - .bells - .entry(pos) - .or_default() - .trigger_event(a, b, time, || gathered); + let rung = + self.be_anims + .bells + .entry(pos) + .or_default() + .trigger_event(a, b, time, || gathered); // The server's copy tells the living entities within 32 blocks. if rung && self.remote.is_none() { self.bell_heard(pos, time); diff --git a/crates/horizon-client/src/game/creatures.rs b/crates/horizon-client/src/game/creatures.rs index 9fbfc61ea..5685377bb 100644 --- a/crates/horizon-client/src/game/creatures.rs +++ b/crates/horizon-client/src/game/creatures.rs @@ -1311,8 +1311,8 @@ impl Game<'_> { } MobEvent::RingBell { bell } => { let pos = BlockPos::new(bell[0], bell[1], bell[2]); - let rang = - self.with_level(|b, level, ticks| b.bell_attempt_to_ring(level, ticks, pos)); + let rang = self + .with_level(|b, level, ticks| b.bell_attempt_to_ring(level, ticks, pos)); if rang { let _ = self.process_level_events(); } diff --git a/crates/horizon-client/src/game/villagers.rs b/crates/horizon-client/src/game/villagers.rs index a7aa87b9e..500392d93 100644 --- a/crates/horizon-client/src/game/villagers.rs +++ b/crates/horizon-client/src/game/villagers.rs @@ -287,8 +287,8 @@ impl Game<'_> { let wants = villager::food_points(item) > 0 || picks_up.as_ref().is_some_and(|t| t.contains(&**item)) || requested.contains(&&**item); - let fits = villager::ext(m) - .is_none_or(|x| x.can_add(&e.stack, self.item_max_stack(item))); + let fits = + villager::ext(m).is_none_or(|x| x.can_add(&e.stack, self.item_max_stack(item))); // ItemEntity's eye height is 0.2125. let at = Vec3::new(e.position.x, e.position.y + 0.2125, e.position.z); if wants && fits && w.line_of_sight(eye, at) { diff --git a/crates/horizon-client/src/mobs/villager_brain.rs b/crates/horizon-client/src/mobs/villager_brain.rs index 7e054db6d..207794baa 100644 --- a/crates/horizon-client/src/mobs/villager_brain.rs +++ b/crates/horizon-client/src/mobs/villager_brain.rs @@ -2717,11 +2717,11 @@ impl B { } // What a friend chases is its INTERACTION_TARGET. let chasing = |who: Who| match who { - Who::Mob(id) => cx - .w - .seen(id) - .and_then(|s| s.villager.as_ref()) - .and_then(|v| v.interaction_target), + Who::Mob(id) => { + cx.w.seen(id) + .and_then(|s| s.villager.as_ref()) + .and_then(|v| v.interaction_target) + } Who::Player => None, }; let me = Who::Mob(m.id);