[PR #6160] [MERGED] A camel's pending dash waits for the ground instead of being dropped #6685

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6160
Author: @xFedeT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/camel-dash-release


📝 Commits (1)

  • 5fe9fc2 A camel's pending dash waits for the ground instead of being dropped

📊 Changes

2 files changed (+14 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/mobs/camel.rs (+11 -4)
📝 crates/horizon-client/src/mobs/equine.rs (+3 -2)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally.

Fixes #6136

What was wrong

A ridden mount keeps a pending jump until it can run it: AbstractHorse.tickRidden executes executeRidersJump once the mount is on the ground and not still jumping, and only Camel.onPlayerJump turns a jump away (cooling down, off the ground at the start). Horizon's equine.rs cleared the rider's pending jump on every tick after calling camel::dash, whether the dash ran or not, and dash itself returned early when the camel was not on the ground that tick. So a release on a tick without ground contact (right after landing, on a slope or a step) lost the jump, which is the issue's "sometimes dashes, sometimes stays still" while standing or walking.

What changes

camel::dash returns whether the jump is used up: yes after a dash, yes when the camel can never take it (cooling down, refusing to move), no while it is off the ground. equine.rs clears the pending jump only then, so the dash runs on the first tick on the ground.

Verification

In game (offscreen, a saddled tamed camel, Space held 0.8 s and released): the dash ran on the first two tries and carried the camel along its look; the rest fell off my test platform. I could not trigger the lost-jump case on demand (it depends on ground contact at the release tick), so the fix rests on the vanilla code above. cargo test -p horizon-client --lib -- camel equine passes; clippy and rustfmt are clean for the changed files (the only clippy error is the existing needless_borrow in horizon-world).

Not done

The dash sound and events of dash go to a local list in equine.rs that is dropped (the same pattern as the camel's stand-up); not changed here.

🤖 Generated with Claude Code


🔄 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/6160 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/camel-dash-release` --- ### 📝 Commits (1) - [`5fe9fc2`](https://github.com/horizon-rust/horizon/commit/5fe9fc298f63ea60fe1b69cb807a12c444b353d9) A camel's pending dash waits for the ground instead of being dropped ### 📊 Changes **2 files changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/camel.rs` (+11 -4) 📝 `crates/horizon-client/src/mobs/equine.rs` (+3 -2) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Fixes #6136 ## What was wrong A ridden mount keeps a pending jump until it can run it: `AbstractHorse.tickRidden` executes `executeRidersJump` once the mount is on the ground and not still jumping, and only `Camel.onPlayerJump` turns a jump away (cooling down, off the ground at the start). Horizon's `equine.rs` cleared the rider's pending jump on every tick after calling `camel::dash`, whether the dash ran or not, and `dash` itself returned early when the camel was not on the ground that tick. So a release on a tick without ground contact (right after landing, on a slope or a step) lost the jump, which is the issue's "sometimes dashes, sometimes stays still" while standing or walking. ## What changes `camel::dash` returns whether the jump is used up: yes after a dash, yes when the camel can never take it (cooling down, refusing to move), no while it is off the ground. `equine.rs` clears the pending jump only then, so the dash runs on the first tick on the ground. ## Verification In game (offscreen, a saddled tamed camel, Space held 0.8 s and released): the dash ran on the first two tries and carried the camel along its look; the rest fell off my test platform. I could not trigger the lost-jump case on demand (it depends on ground contact at the release tick), so the fix rests on the vanilla code above. `cargo test -p horizon-client --lib -- camel equine` passes; clippy and rustfmt are clean for the changed files (the only clippy error is the existing `needless_borrow` in `horizon-world`). ## Not done The dash sound and events of `dash` go to a local list in `equine.rs` that is dropped (the same pattern as the camel's stand-up); not changed here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:24:54 +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#6685
No description provided.