[PR #7199] [MERGED] Fishing hooks move hooked items smoothly #7405

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

📋 Pull Request Information

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

Base: main ← Head: fix/6574-fishing-hooked-item-movement


📝 Commits (4)

  • f3b1317 Fix fishing hook item collision
  • 6cfb760 Update fishing item test for current entity fields
  • 0f254a1 Match vanilla fishing hook hit margin
  • f622f09 Merge main into #7199

📊 Changes

2 files changed (+318 additions, -74 deletions)

View changed files

📝 crates/horizon-client/src/game/fishing.rs (+212 -74)
📝 tools/lan_e2e.py (+106 -0)

📄 Description

🤖 Opened by testatanucleare13-create's AI agent (Copilot SDK in VS Code), not by testatanucleare13-create personally.

What and why

Fixes #6574. Sweep the fishing hook's movement segment to find the first valid entity before a block, avoiding missed item hooks between ticks. When reeling a dropped item, set its velocity and request immediate motion synchronization so both LAN clients see it move smoothly rather than wait for a later position update. Add a LAN regression check that verifies gradual movement on both clients.

Kind

  • bug: a crash or a breakage

Vanilla reference

FishingHook.tick collision and hooked-entity handling; FishingHook.retrieve / pullEntity for the 0.1 velocity impulse. The new fishing-item LAN scenario checks the observable movement and synchronization.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py on PietraFocaia, against origin/main at fbb17c980, 3 min 50 s)

Check Result
Scope ✅ 2 files, +269 −74
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (44 s)
rustfmt ✅ (8 s)
clippy ✅ (1 min 20 s)
tests: horizon-client ✅ 680 passed (1 min 19 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
mod API up to date ✅ (17 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (no vanilla data in this worktree): CI's parity job picks the affected harnesses
Label no label: fix

End-to-end

python3 tools/lan_e2e.py --check fishing-item — passed with two real clients. Both the host and guest saw the item move about 1 block toward the player over five ticks, without a teleport-sized step.

🤖 Generated with Copilot SDK in VS 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/7199 **Author:** [@testatanucleare13-create](https://github.com/testatanucleare13-create) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/6574-fishing-hooked-item-movement` --- ### 📝 Commits (4) - [`f3b1317`](https://github.com/horizon-rust/horizon/commit/f3b1317d3c902d7fbac307a89a97c8e1951a8ab9) Fix fishing hook item collision - [`6cfb760`](https://github.com/horizon-rust/horizon/commit/6cfb7604d5024f7251e1f5e9f7a997729baeebfd) Update fishing item test for current entity fields - [`0f254a1`](https://github.com/horizon-rust/horizon/commit/0f254a1719a405e9cdbb1d0f2a76cffdde33b804) Match vanilla fishing hook hit margin - [`f622f09`](https://github.com/horizon-rust/horizon/commit/f622f093675c53a3ca87dc07bee39d8856cea5ff) Merge main into #7199 ### 📊 Changes **2 files changed** (+318 additions, -74 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fishing.rs` (+212 -74) 📝 `tools/lan_e2e.py` (+106 -0) </details> ### 📄 Description > 🤖 Opened by testatanucleare13-create's AI agent (Copilot SDK in VS Code), not by testatanucleare13-create personally. ## What and why Fixes #6574. Sweep the fishing hook's movement segment to find the first valid entity before a block, avoiding missed item hooks between ticks. When reeling a dropped item, set its velocity and request immediate motion synchronization so both LAN clients see it move smoothly rather than wait for a later position update. Add a LAN regression check that verifies gradual movement on both clients. ## Kind - [x] bug: a crash or a breakage ## Vanilla reference `FishingHook.tick` collision and hooked-entity handling; `FishingHook.retrieve` / `pullEntity` for the 0.1 velocity impulse. The new `fishing-item` LAN scenario checks the observable movement and synchronization. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py` on PietraFocaia, against origin/main at fbb17c980, 3 min 50 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +269 −74 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (44 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (1 min 20 s) | | tests: horizon-client | ✅ 680 passed (1 min 19 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (17 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (no vanilla data in this worktree): CI's parity job picks the affected harnesses | | Label | no label: fix | ## End-to-end `python3 tools/lan_e2e.py --check fishing-item` — passed with two real clients. Both the host and guest saw the item move about 1 block toward the player over five ticks, without a teleport-sized step. 🤖 Generated with [Copilot SDK in VS Code](https://github.com/features/copilot) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:03 +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#7405
No description provided.