From 7934a0b180950a9151600d984a12238ad7107cce Mon Sep 17 00:00:00 2001 From: iLostName <55976057+iLostName@users.noreply.github.com> Date: Wed, 28 Oct 2026 06:09:21 +0100 Subject: [PATCH] riding: the crosshair skips the mob being ridden, so it can't be hit Fixes #2870. --- crates/horizon-client/src/game.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index c97af3a47..b036d865e 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -8390,7 +8390,9 @@ impl Game<'_> { let reach: f64 = if self.creative { 5.0 } else { 3.0 }; let mut best: Option<(usize, f64)> = None; for (i, m) in self.mobs.iter().enumerate() { - if !m.alive() { + // ProjectileUtil.getEntityHitResult: the mob the player rides + // shares its root vehicle and is never the hit. + if !m.alive() || Some(m.id) == self.riding { continue; } if let Some(t) = ray_box(eye, dir, reach, m.bounds())