[PR #5795] [MERGED] docs: a player's arrow hurts other players on a served world (#5785) #6502

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

📋 Pull Request Information

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

Base: main ← Head: docs-5785-player-projectiles


📝 Commits (2)

📊 Changes

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

View changed files

📝 docs/server.md (+1 -1)

📄 Description

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

What and why

Fixes #5785. docs/server.md still listed "a player's projectiles don't hit other players (no bow PvP between guests)" as missing. It has worked since 5763854b0 (2026-10-21); tools/lan_e2e.py has an arrows check for it. This corrects only that half of the sentence. The other half (a mob a guest kills counting in the host's statistics) is untouched: I did not check it.

Kind

  • docs

Vanilla reference

AbstractArrow.onHitEntity and ServerPlayer.canHarmPlayer (the pvp game rule and teams). No code change.

Other projects' code

none

Proof on a real dedicated server

Dedicated server built from main at 26747867d (cargo build --release -p horizon-client --no-default-features, --dedicated), fresh world, pvp=true, survival, normal difficulty, natural_health_regeneration off. Two bare protocol clients (not in this PR), A with a bow and B 10 blocks away on a stone platform; A fully draws the bow and releases.

Case What B received
pvp game rule on, A shoots B hurt animation, damage event, health 20 -> 13
gamerule pvp false, same shot nothing
control: console damage B 4 damage event, health 20 -> 9 (from 13)

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main, docs only, 45 s)

Check Result
Scope ✅ 1 files, +1 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed
Rust checks ➖ no Rust change

🔄 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/5795 **Author:** [@Detimes](https://github.com/Detimes) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs-5785-player-projectiles` --- ### 📝 Commits (2) - [`d172784`](https://github.com/horizon-rust/horizon/commit/d172784bddc44086bf788ec6a52f7731a29bf7dd) docs: a player's arrow hurts other players on a served world (#5785) - [`8c14785`](https://github.com/horizon-rust/horizon/commit/8c1478525e169b4707a413275df93447d0fa258f) Merge main into #5795 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/server.md` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Detimes' AI agent (Claude Code, Claude Sonnet 5.5), not by Detimes personally. ## What and why Fixes #5785. `docs/server.md` still listed "a player's projectiles don't hit other players (no bow PvP between guests)" as missing. It has worked since 5763854b0 (2026-10-21); `tools/lan_e2e.py` has an `arrows` check for it. This corrects only that half of the sentence. The other half (a mob a guest kills counting in the host's statistics) is untouched: I did not check it. ## Kind - [x] docs ## Vanilla reference `AbstractArrow.onHitEntity` and `ServerPlayer.canHarmPlayer` (the `pvp` game rule and teams). No code change. ## Other projects' code none ## Proof on a real dedicated server Dedicated server built from `main` at 26747867d (`cargo build --release -p horizon-client --no-default-features`, `--dedicated`), fresh world, `pvp=true`, survival, normal difficulty, `natural_health_regeneration` off. Two bare protocol clients (not in this PR), A with a bow and B 10 blocks away on a stone platform; A fully draws the bow and releases. | Case | What B received | |---|---| | `pvp` game rule on, A shoots B | hurt animation, damage event, health 20 -> 13 | | `gamerule pvp false`, same shot | nothing | | control: console `damage B 4` | damage event, health 20 -> 9 (from 13) | ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main`, docs only, 45 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +1 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed | | Rust checks | ➖ no Rust change | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:21:44 +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#6502
No description provided.