[PR #4002] [MERGED] Arrows can be picked up by LAN guests and the single-player window (#3997) #5347

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4002
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/issue-3997-guest-arrow-pickup


📝 Commits (1)

  • ad9f9a6 LAN guests and single-player windows pick up arrows they touch (#3997)

📊 Changes

1 file changed (+74 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+74 -1)

📄 Description

🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally.

Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #3997

Cause: touch_arrows (AbstractArrow.playerTouch) only ran for the host's own player. Single player runs on the integrated server thread with the window joined as a LAN guest, so the player's arrows never touched anyone and could not be picked up. Guests got item and orb pickup (guest_pickups, guest_orbs) but no arrow pickup.

Change: guest_arrows in game/lan_actions.rs, called each tick per guest beside guest_pickups. Same reach box (grown by 1, 0.5, 1), same player_touch rules (stuck, no shake, ALLOWED or CREATIVE_ONLY in creative), inventory add via give as the guest, TakeItemEntity broadcast and the pickup flight particle.

Tested: cargo check -p horizon-client --bins and cargo fmt pass. NOT tested: no in-game or LAN e2e run (no vanilla data in .local/ here), no new automated test, so the pickup itself is unverified at runtime.


🔄 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/4002 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/issue-3997-guest-arrow-pickup` --- ### 📝 Commits (1) - [`ad9f9a6`](https://github.com/horizon-rust/horizon/commit/ad9f9a66f62bae020ab6cf61837a14b43ee21c18) LAN guests and single-player windows pick up arrows they touch (#3997) ### 📊 Changes **1 file changed** (+74 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+74 -1) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL personally. Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #3997 Cause: `touch_arrows` (AbstractArrow.playerTouch) only ran for the host's own player. Single player runs on the integrated server thread with the window joined as a LAN guest, so the player's arrows never touched anyone and could not be picked up. Guests got item and orb pickup (`guest_pickups`, `guest_orbs`) but no arrow pickup. Change: `guest_arrows` in `game/lan_actions.rs`, called each tick per guest beside `guest_pickups`. Same reach box (grown by 1, 0.5, 1), same `player_touch` rules (stuck, no shake, ALLOWED or CREATIVE_ONLY in creative), inventory add via `give` as the guest, `TakeItemEntity` broadcast and the pickup flight particle. Tested: `cargo check -p horizon-client --bins` and `cargo fmt` pass. NOT tested: no in-game or LAN e2e run (no vanilla data in `.local/` here), no new automated test, so the pickup itself is unverified at runtime. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11: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#5347
No description provided.