From 6960b65c62f2b898d3a96bc0445402644a75c03d Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Wed, 28 Oct 2026 07:07:43 +0100 Subject: [PATCH] Keep the cart and its box apart in detector_rail_signal --- crates/horizon-client/src/game.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index 7f5f8f62a..1d7bbbbd6 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -738,11 +738,11 @@ impl GameLevel<'_> { ); let mut container = None; for ((lo, hi), cart) in self.cart_boxes.iter().zip(self.carts) { - let cart = Aabb::new( + let bounds = Aabb::new( Vec3::new(lo[0], lo[1], lo[2]), Vec3::new(hi[0], hi[1], hi[2]), ); - if !area.intersects(cart) { + if !area.intersects(bounds) { continue; } match cart.kind {