[PR #6805] [MERGED] Second camel passenger now sits behind the first #7108

Closed
opened 2026-11-03 06:33:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6805
Author: @DUzzL
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/6791-camel-husk-seats


📝 Commits (1)

  • 191cc8c Seat the second camel passenger behind the first

📊 Changes

2 files changed (+51 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game/passengers.rs (+16 -1)
📝 crates/horizon-client/src/mobs/camel.rs (+35 -6)

📄 Description

🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL himself.

Fixes #6791

What / why

Two passengers on a camel or camel husk (for example from /summon ... {Passengers:[...]}) were both placed on the first seat. Horizon seated every mob rider with the driver attachment. Now the second passenger sits behind, as in vanilla.

Vanilla followed

Camel.getPassengerAttachmentPoint: index from getPassengers().indexOf(passenger); with more than one passenger the second seat is -0.7 (not 0.5), an Animal adds 0.2; height from getBodyAnchorAnimationYOffset(driver, ...). The seat order is the load order of the riders (Passengers NBT order).

Changes

  • mobs/camel.rs: passenger_attachment_at(m, index, count, animal).
  • game/passengers.rs: sync_riders picks the seat for camel and camel husk vehicles.

Evidence

Unit test mobs::camel::tests::the_second_passenger_sits_behind (cargo test --profile fast -p horizon-client-lib --lib camel, 9 passed). No harness: seat positions of mob riders are client display only, so a vanilla-server comparison has nothing to compare. Not reproduced in game.

Follow-ups, not in this PR: the player's own seat on a camel (game/mounts.rs::position_rider) still uses seat 0; spawn_camel_husk_jockey still puts the parched beside the husk.

pr_ready

Honest result, local run:

  • Public tree: pass
  • Python tests: 1 error, test_world_input_capture.test_capture_lifecycle (capture.exe exit 101), unrelated to this change
  • Parity: material_surface fails; it fails the same way on a clean upstream/main in this worktree (.local junction path is outside the worktree root), so it is environmental
  • cargo fmt --check: clean; the full pr_ready run did not finish on this machine

🔄 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/6805 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/6791-camel-husk-seats` --- ### 📝 Commits (1) - [`191cc8c`](https://github.com/horizon-rust/horizon/commit/191cc8cdbc5bd2dde84daeef1e6f66dc2d77fb8a) Seat the second camel passenger behind the first ### 📊 Changes **2 files changed** (+51 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/passengers.rs` (+16 -1) 📝 `crates/horizon-client/src/mobs/camel.rs` (+35 -6) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL himself. Fixes #6791 ## What / why Two passengers on a camel or camel husk (for example from `/summon ... {Passengers:[...]}`) were both placed on the first seat. Horizon seated every mob rider with the driver attachment. Now the second passenger sits behind, as in vanilla. ## Vanilla followed `Camel.getPassengerAttachmentPoint`: index from `getPassengers().indexOf(passenger)`; with more than one passenger the second seat is -0.7 (not 0.5), an `Animal` adds 0.2; height from `getBodyAnchorAnimationYOffset(driver, ...)`. The seat order is the load order of the riders (`Passengers` NBT order). ## Changes - `mobs/camel.rs`: `passenger_attachment_at(m, index, count, animal)`. - `game/passengers.rs`: `sync_riders` picks the seat for camel and camel husk vehicles. ## Evidence Unit test `mobs::camel::tests::the_second_passenger_sits_behind` (`cargo test --profile fast -p horizon-client-lib --lib camel`, 9 passed). No harness: seat positions of mob riders are client display only, so a vanilla-server comparison has nothing to compare. Not reproduced in game. Follow-ups, not in this PR: the player's own seat on a camel (`game/mounts.rs::position_rider`) still uses seat 0; `spawn_camel_husk_jockey` still puts the parched beside the husk. ## pr_ready Honest result, local run: - Public tree: pass - Python tests: 1 error, `test_world_input_capture.test_capture_lifecycle` (`capture.exe` exit 101), unrelated to this change - Parity: `material_surface` fails; it fails the same way on a clean upstream/main in this worktree (`.local` junction path is outside the worktree root), so it is environmental - `cargo fmt --check`: clean; the full pr_ready run did not finish on this machine --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:33:59 +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#7108
No description provided.