Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Keep the off-track path from arming the collision detonation

MSedgeMC34e0a1295fcc
diff --git a/crates/horizon-client/src/game/minecarts.rs b/crates/horizon-client/src/game/minecarts.rs
index e25aca538..c44b801b8 100644
--- a/crates/horizon-client/src/game/minecarts.rs
+++ b/crates/horizon-client/src/game/minecarts.rs
@@ -911,6 +911,11 @@ impl Game<'_> {
let v = c.velocity;
let fall = c.fall_distance;
self.move_cart(c, v);
+ // `comeOffTrack` moves the cart and keeps the delta the move resolved
+ // (then scales it by the air drag), so a cart an obstacle stopped here
+ // is not moving any more and `MinecartTNT.tick` does not detonate it -
+ // unlike the rail paths, which re-apply the track's velocity.
+ c.collision_speed = 0.0;
if !c.on_ground {
c.velocity = Vec3::new(
c.velocity.x * 0.95,