[PR #3691] [MERGED] Draw the first-person arms under a held map #5153

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3691
Author: @1038april
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/map-hands


📝 Commits (1)

  • ba65753 Draw the empty main hand on the main arm, and hide it while invisible

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game.rs (+7 -5)

📄 Description

🤖 Opened by 1038april's AI agent (Claude), not by 1038april themself.

What and why

This PR first drew the arms under a held map; #3444 landed the same change first, so it is now reduced to the two differences from renderArmWithItem that are still left in hand_geometry's empty-hand branch:

  • An empty main hand is drawn on the player's main arm: the left one when the main hand is set to left. It was always the right arm.
  • It is not drawn while the player is invisible. (The map arms from #3444 already skip invisible players.)

The change reuses #3444's player_arm_pose(left, …) and first_person_arm(left, …).

Vanilla reference

ItemInHandRenderer.renderArmWithItem (FirstPersonHandsAndItems in 26.3): an empty stack calls renderPlayerArm(…, humanoidArm) only for the main hand and only when !player.isInvisible(), with humanoidArm the player's main arm. Not re-checked with tools/rea_vanilla.py (no game files on the machine that wrote this). Harness: first_person covers this file; not run here.

Self-check

python3 tools/pr_ready.py --base upstream/main --quick, on a Linux machine without game files or a GPU:

Check Result
Scope ✅ 1 files, +7 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (46 s)
rustfmt ✅ (11 s)
clippy ❌ failed (22 s)
tests: horizon-client ✅ 837 passed (59 s)
doc tests ✅ 0 passed (2 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: no label for a fix

The clippy failure is outside this change: manual_range_contains in horizon-world/src/worldgen/aquifer/noise_based.rs:450 (this machine's Rust 1.97 is newer than CI's); no warnings in game.rs.

🤖 Generated with Claude Code

https://claude.ai/code/session_018ksHJwFp11RfYk6S9xnyCf


🔄 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/3691 **Author:** [@1038april](https://github.com/1038april) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/map-hands` --- ### 📝 Commits (1) - [`ba65753`](https://github.com/horizon-rust/horizon/commit/ba6575314cc640ff71737fc95c0060b53fa26eb4) Draw the empty main hand on the main arm, and hide it while invisible ### 📊 Changes **1 file changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -5) </details> ### 📄 Description > 🤖 Opened by 1038april's AI agent (Claude), not by 1038april themself. ## What and why This PR first drew the arms under a held map; #3444 landed the same change first, so it is now reduced to the two differences from `renderArmWithItem` that are still left in `hand_geometry`'s empty-hand branch: - An empty main hand is drawn on the player's main arm: the left one when the main hand is set to left. It was always the right arm. - It is not drawn while the player is invisible. (The map arms from #3444 already skip invisible players.) The change reuses #3444's `player_arm_pose(left, …)` and `first_person_arm(left, …)`. ## Vanilla reference `ItemInHandRenderer.renderArmWithItem` (`FirstPersonHandsAndItems` in 26.3): an empty stack calls `renderPlayerArm(…, humanoidArm)` only for the main hand and only when `!player.isInvisible()`, with `humanoidArm` the player's main arm. Not re-checked with `tools/rea_vanilla.py` (no game files on the machine that wrote this). Harness: `first_person` covers this file; not run here. ## Self-check `python3 tools/pr_ready.py --base upstream/main --quick`, on a Linux machine without game files or a GPU: | Check | Result | | --- | --- | | Scope | ✅ 1 files, +7 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (46 s) | | rustfmt | ✅ (11 s) | | clippy | ❌ failed (22 s) | | tests: horizon-client | ✅ 837 passed (59 s) | | doc tests | ✅ 0 passed (2 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: no label for a fix | The clippy failure is outside this change: `manual_range_contains` in `horizon-world/src/worldgen/aquifer/noise_based.rs:450` (this machine's Rust 1.97 is newer than CI's); no warnings in `game.rs`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018ksHJwFp11RfYk6S9xnyCf --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:36 +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#5153
No description provided.