[PR #6949] [MERGED] Fix cancelled arrow impacts sticking in blocks #7222

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

📋 Pull Request Information

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

Base: main ← Head: fix/cancelled-arrow-sticks


📝 Commits (1)

  • a03af1c Fix cancelled arrow impacts sticking in blocks

📊 Changes

2 files changed (+34 additions, -13 deletions)

View changed files

📝 crates/horizon-client/src/arrows.rs (+31 -9)
📝 crates/horizon-client/src/game/native_hooks.rs (+3 -4)

📄 Description

🤖 Opened by Xmilon's AI agent (Codex, gpt-6.1-terra), not by Xmilon personally.

What and why

Part of #6366: let a cancelled arrow impact fly through its movement instead of stopping inside the block and sticking on the next tick. Ignore the containing block while the arrow exits it. Reconcile the hook documentation with its promise that cancelled arrows do not stick. Trident-specific work is out of scope.

Kind

  • bug: a crash or a breakage

Vanilla reference

Horizon-only projectile impact cancellation hook; AbstractArrow.tick and AbstractArrow.stepMoveAndHit are the affected movement paths. The cancelled-impact behavior follows the hook's no-stick contract rather than the contradictory old wording.

Other projects' code

None.

Self-check

  • cargo fmt -p horizon-client -p horizon-client-lib -- --check: passed.
  • git diff --check: passed.
  • cargo check -p horizon-client: passed before the final raycast adjustment.
  • cargo clippy -p horizon-client -- -D warnings: passed; source was adjusted during the run, so the final revision is not verified by it.
  • cargo test -p horizon-client-lib projectiles::tests::a_tick_through --lib: stopped before finishing, so no tests ran locally; verify runs them.
  • tools/pr_ready.py and server-thread gameplay verification were not run locally (cold builds are slow on this machine); the verify job on this PR is the check. No arrow-specific regression test was added; the existing arrow scene probe requires prepared game resources. CI should verify the final revision.

🤖 Generated with Codex


🔄 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/6949 **Author:** [@Xmilon](https://github.com/Xmilon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/cancelled-arrow-sticks` --- ### 📝 Commits (1) - [`a03af1c`](https://github.com/horizon-rust/horizon/commit/a03af1c49e610d28c075f2e496cea245ae4f9e2c) Fix cancelled arrow impacts sticking in blocks ### 📊 Changes **2 files changed** (+34 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/arrows.rs` (+31 -9) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+3 -4) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Codex, gpt-6.1-terra), not by Xmilon personally. ## What and why Part of #6366: let a cancelled arrow impact fly through its movement instead of stopping inside the block and sticking on the next tick. Ignore the containing block while the arrow exits it. Reconcile the hook documentation with its promise that cancelled arrows do not stick. Trident-specific work is out of scope. ## Kind - [x] bug: a crash or a breakage ## Vanilla reference Horizon-only projectile impact cancellation hook; `AbstractArrow.tick` and `AbstractArrow.stepMoveAndHit` are the affected movement paths. The cancelled-impact behavior follows the hook's no-stick contract rather than the contradictory old wording. ## Other projects' code None. ## Self-check - `cargo fmt -p horizon-client -p horizon-client-lib -- --check`: passed. - `git diff --check`: passed. - `cargo check -p horizon-client`: passed before the final raycast adjustment. - `cargo clippy -p horizon-client -- -D warnings`: passed; source was adjusted during the run, so the final revision is not verified by it. - `cargo test -p horizon-client-lib projectiles::tests::a_tick_through --lib`: stopped before finishing, so no tests ran locally; `verify` runs them. - `tools/pr_ready.py` and server-thread gameplay verification were not run locally (cold builds are slow on this machine); the `verify` job on this PR is the check. No arrow-specific regression test was added; the existing arrow scene probe requires prepared game resources. CI should verify the final revision. 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:57 +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#7222
No description provided.