[PR #6184] [MERGED] Carrot and warped fungus on a stick: the hand swings only when the boost runs #6703

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

📋 Pull Request Information

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

Base: main ← Head: fix/carrot-stick-swing


📝 Commits (1)

  • aba7fe0 A carrot or warped fungus on a stick swings only when the server boosts

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+11 -3)

📄 Description

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

Fixes #6140

What was wrong

FoodOnAStickItem.use returns PASS on a client; the server returns SUCCESS_SERVER only when steerable.boost() ran, which is what swings the hand. remote.rs's item_has_use (the client's guess of whether Item.use ends the click) listed carrot_on_a_stick and warped_fungus_on_a_stick, so on a client of a server (single player's window included) every right click ended the click and swung the hand, also while the boost cooled down.

What changes

Both sticks are out of item_has_use. The swing now comes from the server: use_steering_stick already calls swing_arm() when the boost runs, and lan_swing_back sends it to the client; during the cooldown nothing swings.

Verification

a_rocket_used_while_gliding_ends_the_click now also asserts that neither stick ends the click (20 remote::tests pass); clippy and rustfmt are clean for the changed file except the existing needless_borrow in horizon-world. I did not ride a pig in game.

Not done

Nothing else about the boost changed.

🤖 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/6184 **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/carrot-stick-swing` --- ### 📝 Commits (1) - [`aba7fe0`](https://github.com/horizon-rust/horizon/commit/aba7fe0ba056437490e6d056c8bbba8e09dd0069) A carrot or warped fungus on a stick swings only when the server boosts ### 📊 Changes **1 file changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+11 -3) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Fixes #6140 ## What was wrong `FoodOnAStickItem.use` returns PASS on a client; the server returns SUCCESS_SERVER only when `steerable.boost()` ran, which is what swings the hand. `remote.rs`'s `item_has_use` (the client's guess of whether `Item.use` ends the click) listed `carrot_on_a_stick` and `warped_fungus_on_a_stick`, so on a client of a server (single player's window included) every right click ended the click and swung the hand, also while the boost cooled down. ## What changes Both sticks are out of `item_has_use`. The swing now comes from the server: `use_steering_stick` already calls `swing_arm()` when the boost runs, and `lan_swing_back` sends it to the client; during the cooldown nothing swings. ## Verification `a_rocket_used_while_gliding_ends_the_click` now also asserts that neither stick ends the click (20 `remote::tests` pass); clippy and rustfmt are clean for the changed file except the existing `needless_borrow` in `horizon-world`. I did not ride a pig in game. ## Not done Nothing else about the boost changed. 🤖 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:25:08 +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#6703
No description provided.