[PR #5677] [MERGED] Fix native chat to the acting player inside hooks #6431

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5677
Author: @arismoko
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @levzzz5154

Base: main ← Head: fix/native-tell-acting-player


📝 Commits (1)

  • e8d5b82 Fix native chat to acting players in hooks

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/native_server.rs (+5 -12)
📝 docs/native-mods.md (+3 -2)

📄 Description

🤖 Opened by Aria's agent swarm, Dyna, not by Aria.

What and why

Fixes #5660.

native_tell now sends through native_send, which queues packets for the acting player during a hook and uses the existing guest path for other players. Update the helper documentation.

native_tell now takes &mut self instead of &self; player hooks already hold &mut self.

Kind

  • bug: a crash or a breakage

Vanilla reference

Horizon-only native mod API. This changes an existing helper; it adds no hook, so no NeoForge counterpart applies.

Other projects’ code

None.

In-game test

Used the recommended end-to-end route, https://github.com/arismoko/horizon-machine-sample, at Horizon commit e8d5b826b09400358c8d6a633d2460889c3785b4. A throwaway sample hook called native_tell for native_acting_player on right-click. The message appeared in client chat on both the integrated server thread and a loopback dedicated server.

Self-check

pr_ready (tools/pr_ready.py --base 690a1a4512bafd47c2ac530405c6796757f9869d on desktop, against 690a1a4512 at 690a1a451, 6 min 10 s)

Check Result
Scope ✅ 2 files, +8 −14
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed (28 s)
rustfmt ✅ (7 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 1604 passed (3 min 3 s)
doc tests ✅ 0 passed (5 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ❌ 12 affected, 1 passed, failed: friends_integration, remote_fireball, remote_fireworks, server_player_sculk (2 min 12 s)
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The desktop parity run could not complete four graphical harnesses. Under Xvfb on arch, lunge_motion passed. friends_integration, remote_fireball, remote_fireworks, and server_player_sculk failed after the game host exited. The same four failed at base commit 690a1a4512bafd47c2ac530405c6796757f9869d under the same Xvfb setup; they did not complete their gameplay checks.

🤖 Generated with Dyna


🔄 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/5677 **Author:** [@arismoko](https://github.com/arismoko) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/native-tell-acting-player` --- ### 📝 Commits (1) - [`e8d5b82`](https://github.com/horizon-rust/horizon/commit/e8d5b826b09400358c8d6a633d2460889c3785b4) Fix native chat to acting players in hooks ### 📊 Changes **2 files changed** (+8 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/native_server.rs` (+5 -12) 📝 `docs/native-mods.md` (+3 -2) </details> ### 📄 Description > 🤖 Opened by Aria's agent swarm, Dyna, not by Aria. ## What and why Fixes #5660. `native_tell` now sends through `native_send`, which queues packets for the acting player during a hook and uses the existing guest path for other players. Update the helper documentation. `native_tell` now takes `&mut self` instead of `&self`; player hooks already hold `&mut self`. ## Kind - [x] bug: a crash or a breakage ## Vanilla reference Horizon-only native mod API. This changes an existing helper; it adds no hook, so no NeoForge counterpart applies. ## Other projects’ code None. ## In-game test Used the recommended end-to-end route, https://github.com/arismoko/horizon-machine-sample, at Horizon commit `e8d5b826b09400358c8d6a633d2460889c3785b4`. A throwaway sample hook called `native_tell` for `native_acting_player` on right-click. The message appeared in client chat on both the integrated server thread and a loopback dedicated server. ## Self-check **pr_ready** (`tools/pr_ready.py --base 690a1a4512bafd47c2ac530405c6796757f9869d` on desktop, against 690a1a4512bafd47c2ac530405c6796757f9869d at 690a1a451, 6 min 10 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +8 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed (28 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 1604 passed (3 min 3 s) | | doc tests | ✅ 0 passed (5 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ❌ 12 affected, 1 passed, failed: friends_integration, remote_fireball, remote_fireworks, server_player_sculk (2 min 12 s) | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The desktop parity run could not complete four graphical harnesses. Under Xvfb on arch, `lunge_motion` passed. `friends_integration`, `remote_fireball`, `remote_fireworks`, and `server_player_sculk` failed after the game host exited. The same four failed at base commit `690a1a4512bafd47c2ac530405c6796757f9869d` under the same Xvfb setup; they did not complete their gameplay checks. 🤖 Generated with Dyna --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:20:29 +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#6431
No description provided.