[PR #1144] [MERGED] Other players are drawn lying in their beds #3090

Closed
opened 2026-11-02 16:01:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1144
Author: @ludovic111
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: fix/lan-players-lie-in-bed


📝 Commits (1)

  • 4f461b2 Other players are drawn lying in their beds

📊 Changes

9 files changed (+79 additions, -11 deletions)

View changed files

📝 crates/horizon-client/examples/lan_flat.rs (+1 -0)
📝 crates/horizon-client/src/game/lan.rs (+19 -0)
📝 crates/horizon-client/src/game/remote.rs (+19 -0)
📝 crates/horizon-client/src/lan/entity.rs (+3 -1)
📝 crates/horizon-client/src/lan/hub.rs (+11 -1)
📝 crates/horizon-client/src/mobs/render.rs (+2 -1)
📝 crates/horizon-client/src/mobs/villager.rs (+10 -6)
📝 crates/horizon-client/tests/lan_bot.rs (+1 -0)
📝 tools/lan_e2e.py (+13 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #1045. Reported by Tydragon00 (Tydragon on Discord): thanks!

What

A sleeping guest stood on top of its bed for everyone else: the server sent its pose but never its bed (LivingEntity.SLEEPING_POS went only to the sleeper), Horizon's clients had no sleeping pose for other players, and the host's own models of its guests ignored the bed. A player paired with the sleeper later (the host walking up from afar) saw the same.

The tracked state of a sleeping player now holds its bed, so pairing and updates send it, and its removal sends the empty position back; clients and the host's guest models lie the player in the bed as LivingEntityRenderer.setupRotations does for Pose.SLEEPING.

The issue's other items

  • Tool animation: not reproduced on main. With the guest mining with a stone axe, the host's screenshots show the guest holding the axe (lan_e2e --check swings/hurt also cover each side's swings).
  • Eating sound heard by the host: this is vanilla. Player.playSound calls level.playSound(this, ...), which excludes only the eater: every other player near it hears the eating.
  • Right-hinge door clipping: not reproduced. A guest opening a right-hinge (and left-hinge) oak door and walking through stays at y 64, on both sides.
  • Furnace experience for a guest (carried over from #848): no player gets it, single player included. Horizon never pops Cooking.experience when a furnace, smoker or blast furnace output is taken (vanilla FurnaceResultSlot.checkTakeAchievements → AbstractFurnaceBlockEntity.awardUsedRecipesAndPopExperience). A probe that gives a guest 2 raw gold to smelt and takes the ingots got 0 experience. Not a LAN bug; noted for later in FEATURES.md.

Proof

tools/lan_e2e.py --check sleep: the host draws the sleeping guest lying, the guest the sleeping host, and neither once they are up. Passes in-frame and --server-thread.

Self-check

All 18 B5 branches merged on one integration commit over origin/main b31cb422 (Mac mini):

cargo fmt --all --check                                                  ok
set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings   exit 0, no ^error
cargo test -p horizon-client                                             1087 passed, 0 failed
python3 tools/parity.py --changed origin/main                            102 passed, 0 failed (over b7390d78)
python3 tools/parity.py --changed-files <explosion.rs>                   22 passed, 0 failed (over b31cb422, after rebasing onto #1101)

tools/lan_e2e.py, full runs over b31cb422 (48 checks):

  • --server-thread: 47 passed; swings (the guest's hoe) failed after earlier checks and passes alone.
  • in-frame: 44 passed. cracks caught a guest's crack left behind when its own tick broke the block (fixed in the cracks PR; swings then cracks and a 3-break probe now pass in both modes). barter (piglin gone), swings and effects fail only after earlier checks and pass alone.
  • sign (not touched here) fails about 1 run in 4, on main too: place reports 2 ticks after the click, sometimes before the server's answer. Noted in FEATURES.md with the other flakes.

🤖 Generated with Claude Code


🔄 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/1144 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-players-lie-in-bed` --- ### 📝 Commits (1) - [`4f461b2`](https://github.com/horizon-rust/horizon/commit/4f461b27edc197298ca89457bef889fe32994084) Other players are drawn lying in their beds ### 📊 Changes **9 files changed** (+79 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/lan_flat.rs` (+1 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+19 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+19 -0) 📝 `crates/horizon-client/src/lan/entity.rs` (+3 -1) 📝 `crates/horizon-client/src/lan/hub.rs` (+11 -1) 📝 `crates/horizon-client/src/mobs/render.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/villager.rs` (+10 -6) 📝 `crates/horizon-client/tests/lan_bot.rs` (+1 -0) 📝 `tools/lan_e2e.py` (+13 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #1045. Reported by **Tydragon00** (Tydragon on Discord): thanks! ## What A sleeping guest stood on top of its bed for everyone else: the server sent its pose but never its bed (`LivingEntity.SLEEPING_POS` went only to the sleeper), Horizon's clients had no sleeping pose for other players, and the host's own models of its guests ignored the bed. A player paired with the sleeper later (the host walking up from afar) saw the same. The tracked state of a sleeping player now holds its bed, so pairing and updates send it, and its removal sends the empty position back; clients and the host's guest models lie the player in the bed as `LivingEntityRenderer.setupRotations` does for `Pose.SLEEPING`. ## The issue's other items - **Tool animation:** not reproduced on main. With the guest mining with a stone axe, the host's screenshots show the guest holding the axe (`lan_e2e --check swings`/`hurt` also cover each side's swings). - **Eating sound heard by the host:** this is vanilla. `Player.playSound` calls `level.playSound(this, ...)`, which excludes only the eater: every other player near it hears the eating. - **Right-hinge door clipping:** not reproduced. A guest opening a right-hinge (and left-hinge) oak door and walking through stays at y 64, on both sides. - **Furnace experience for a guest** (carried over from #848): no player gets it, single player included. Horizon never pops `Cooking.experience` when a furnace, smoker or blast furnace output is taken (vanilla `FurnaceResultSlot.checkTakeAchievements` → `AbstractFurnaceBlockEntity.awardUsedRecipesAndPopExperience`). A probe that gives a guest 2 raw gold to smelt and takes the ingots got 0 experience. Not a LAN bug; noted for later in FEATURES.md. ## Proof `tools/lan_e2e.py --check sleep`: the host draws the sleeping guest lying, the guest the sleeping host, and neither once they are up. Passes in-frame and `--server-thread`. ### Self-check All 18 B5 branches merged on one integration commit over origin/main `b31cb422` (Mac mini): ``` cargo fmt --all --check ok set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings exit 0, no ^error cargo test -p horizon-client 1087 passed, 0 failed python3 tools/parity.py --changed origin/main 102 passed, 0 failed (over b7390d78) python3 tools/parity.py --changed-files <explosion.rs> 22 passed, 0 failed (over b31cb422, after rebasing onto #1101) ``` `tools/lan_e2e.py`, full runs over `b31cb422` (48 checks): - `--server-thread`: 47 passed; `swings` (the guest's hoe) failed after earlier checks and passes alone. - in-frame: 44 passed. `cracks` caught a guest's crack left behind when its own tick broke the block (fixed in the cracks PR; `swings` then `cracks` and a 3-break probe now pass in both modes). `barter` (piglin gone), `swings` and `effects` fail only after earlier checks and pass alone. - `sign` (not touched here) fails about 1 run in 4, on main too: `place` reports 2 ticks after the click, sometimes before the server's answer. Noted in FEATURES.md with the other flakes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:01:25 +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#3090
No description provided.