[PR #4505] [MERGED] Server path parity: armour swap, boat paddling, guest scoreboards, respawn message, fence leads, boat air bar, xp orbs #5663

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4505
Author: @kacpherek
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/seam-batch


📝 Commits (7)

  • a72ce25 Predict the armour swap of a right click on a server client
  • 932cecc Use nothing on a server while the hands paddle a boat
  • fbf38df Update the health, food, armor and xp objectives of LAN guests
  • 12a0e29 Tell a LAN guest when its respawn block is missing
  • f671f9a Tie a lead to a fence for players of a server
  • 45c36d8 Keep a boat passenger's eyes dry in single player
  • d4326f7 Tick experience orbs on the client between server updates

📊 Changes

13 files changed (+224 additions, -75 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -0)
📝 crates/horizon-client/src/game/armor_stands.rs (+9 -2)
📝 crates/horizon-client/src/game/hand.rs (+1 -1)
📝 crates/horizon-client/src/game/lan_actions.rs (+12 -0)
📝 crates/horizon-client/src/game/leads.rs (+6 -1)
📝 crates/horizon-client/src/game/remote.rs (+93 -16)
📝 crates/horizon-client/src/game/scoreboard.rs (+44 -44)
📝 crates/horizon-client/src/game/server_travel.rs (+4 -4)
📝 crates/horizon-client/src/lan/hub.rs (+14 -0)
📝 crates/horizon-client/src/motion.rs (+2 -2)
📝 crates/horizon-client/src/motion/fluids.rs (+27 -4)
📝 crates/horizon-client/src/pose.rs (+5 -0)
📝 tests/test_remote_motion.py (+1 -1)

📄 Description

What and why

Single player runs as a client of the in-process server, so behaviour that only the old in-frame path reached never happened there. Each commit makes the server path, or a server client, reach the port that already exists, as vanilla does:

  • Armour swap on right click is predicted on a server client (Equippable.swapWithEquipmentSlot), so it no longer waits for the server's reply. Fixes #4418.
  • No item use while the hands paddle a boat on a server (LocalPlayer.isHandsBusy in Minecraft.startUseItem).
  • Health, food, armor, air, xp and level scoreboard objectives update for LAN guests and the single-player owner (ServerPlayer.doTick), not only for the in-frame player.
  • A guest whose bed or anchor is gone gets "You have no home bed or charged respawn anchor" (game event NO_RESPAWN_BLOCK_AVAILABLE in PlayerList.respawn).
  • Tying a lead to a fence works for players of a server (LeashFenceKnotEntity.interact / LeadItem.bindPlayerMobs), and only the clicking player's own leashed mobs are tied.
  • A boat passenger's eyes stay dry in single player (AbstractBoat.modifyPassengerFluidInteractionBox), so the air bar no longer shows in a boat. Fixes #4476.
  • Experience orbs move on the client between server updates (ExperienceOrb.tick), so dragon xp no longer jerks. Fixes #4488.

Vanilla reference

Each commit message names the vanilla class and method; each changed function opens its doc with the method it ports.

How it was checked

  • Every commit was read against the vanilla source by a second reviewer; three review fixes are folded in.
  • tools/port_ledger.py check --base origin/main on each change: no new client or seam gaps, no stale citations.
  • Not built or run locally; CI builds it.

Not changed

  • #4472: vanilla does not release an item use when a screen opens (Minecraft.setScreen only calls KeyMapping.releaseAll, and releaseUsingItem runs from handleKeybinds, which does not run with a screen open), so Horizon already matches it.
  • 92 of the 98 seam and client rows from the ledger were false positives (the other path reaches the behaviour another way, or the callee only logs or saves options).

🔄 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/4505 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/seam-batch` --- ### 📝 Commits (7) - [`a72ce25`](https://github.com/horizon-rust/horizon/commit/a72ce25b23b7b73a1dca38520f6a1a397c6c1218) Predict the armour swap of a right click on a server client - [`932cecc`](https://github.com/horizon-rust/horizon/commit/932cecc24e7c6ad11a9d950508936d72d55bce82) Use nothing on a server while the hands paddle a boat - [`fbf38df`](https://github.com/horizon-rust/horizon/commit/fbf38dfc890380da9da405d47e7193b5cf68d8ee) Update the health, food, armor and xp objectives of LAN guests - [`12a0e29`](https://github.com/horizon-rust/horizon/commit/12a0e29610b47715bcf5b7561cc5490a6042a365) Tell a LAN guest when its respawn block is missing - [`f671f9a`](https://github.com/horizon-rust/horizon/commit/f671f9a758ce954d986722e40d2c159fb01ea80e) Tie a lead to a fence for players of a server - [`45c36d8`](https://github.com/horizon-rust/horizon/commit/45c36d87217724256ec83b86af4387bd1a87cedc) Keep a boat passenger's eyes dry in single player - [`d4326f7`](https://github.com/horizon-rust/horizon/commit/d4326f77c8feab42826207cfe4f0eb661dd76c53) Tick experience orbs on the client between server updates ### 📊 Changes **13 files changed** (+224 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -0) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+9 -2) 📝 `crates/horizon-client/src/game/hand.rs` (+1 -1) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+12 -0) 📝 `crates/horizon-client/src/game/leads.rs` (+6 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+93 -16) 📝 `crates/horizon-client/src/game/scoreboard.rs` (+44 -44) 📝 `crates/horizon-client/src/game/server_travel.rs` (+4 -4) 📝 `crates/horizon-client/src/lan/hub.rs` (+14 -0) 📝 `crates/horizon-client/src/motion.rs` (+2 -2) 📝 `crates/horizon-client/src/motion/fluids.rs` (+27 -4) 📝 `crates/horizon-client/src/pose.rs` (+5 -0) 📝 `tests/test_remote_motion.py` (+1 -1) </details> ### 📄 Description ## What and why Single player runs as a client of the in-process server, so behaviour that only the old in-frame path reached never happened there. Each commit makes the server path, or a server client, reach the port that already exists, as vanilla does: - **Armour swap on right click is predicted on a server client** (`Equippable.swapWithEquipmentSlot`), so it no longer waits for the server's reply. Fixes #4418. - **No item use while the hands paddle a boat** on a server (`LocalPlayer.isHandsBusy` in `Minecraft.startUseItem`). - **Health, food, armor, air, xp and level scoreboard objectives update for LAN guests and the single-player owner** (`ServerPlayer.doTick`), not only for the in-frame player. - **A guest whose bed or anchor is gone gets "You have no home bed or charged respawn anchor"** (game event `NO_RESPAWN_BLOCK_AVAILABLE` in `PlayerList.respawn`). - **Tying a lead to a fence works for players of a server** (`LeashFenceKnotEntity.interact` / `LeadItem.bindPlayerMobs`), and only the clicking player's own leashed mobs are tied. - **A boat passenger's eyes stay dry in single player** (`AbstractBoat.modifyPassengerFluidInteractionBox`), so the air bar no longer shows in a boat. Fixes #4476. - **Experience orbs move on the client between server updates** (`ExperienceOrb.tick`), so dragon xp no longer jerks. Fixes #4488. ## Vanilla reference Each commit message names the vanilla class and method; each changed function opens its doc with the method it ports. ## How it was checked - Every commit was read against the vanilla source by a second reviewer; three review fixes are folded in. - `tools/port_ledger.py check --base origin/main` on each change: no new `client` or `seam` gaps, no stale citations. - Not built or run locally; CI builds it. ## Not changed - #4472: vanilla does not release an item use when a screen opens (`Minecraft.setScreen` only calls `KeyMapping.releaseAll`, and `releaseUsingItem` runs from `handleKeybinds`, which does not run with a screen open), so Horizon already matches it. - 92 of the 98 seam and client rows from the ledger were false positives (the other path reaches the behaviour another way, or the callee only logs or saves options). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:10 +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#5663
No description provided.