[PR #2219] [MERGED] Step out of a minecart in vanilla's order #4112

Closed
opened 2026-11-03 04:14:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2219
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/minecart-dismount-direction


📝 Commits (1)

  • 0a5e80d Step out of a minecart in vanilla's order

📊 Changes

1 file changed (+19 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/game/minecarts.rs (+19 -11)

📄 Description

What and why

When a player left a minecart, the spot beside it was searched in a fixed east, west, south, north order. Vanilla searches relative to the way the cart faces: right, left, back right, back left, forward right, forward left, back, forward. So the player could land on the wrong side of the rail. The search order now follows the cart's facing.

Vanilla reference

  • AbstractMinecart.getDismountLocationForPassenger: uses getMotionDirection() (Direction.fromYRot of the cart's yaw) and DismountHelper.offsetsForDirection, trying heights 0, 1, -1.

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2219 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/minecart-dismount-direction` --- ### 📝 Commits (1) - [`0a5e80d`](https://github.com/horizon-rust/horizon/commit/0a5e80de7ba474d420e5c215cabb7ac134817a5b) Step out of a minecart in vanilla's order ### 📊 Changes **1 file changed** (+19 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/minecarts.rs` (+19 -11) </details> ### 📄 Description ## What and why When a player left a minecart, the spot beside it was searched in a fixed east, west, south, north order. Vanilla searches relative to the way the cart faces: right, left, back right, back left, forward right, forward left, back, forward. So the player could land on the wrong side of the rail. The search order now follows the cart's facing. ## Vanilla reference - `AbstractMinecart.getDismountLocationForPassenger`: uses `getMotionDirection()` (`Direction.fromYRot` of the cart's yaw) and `DismountHelper.offsetsForDirection`, trying heights 0, 1, -1. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:14:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4112
No description provided.