[PR #2548] [MERGED] Send body armour, carpets and saddles to the single player window #4415

Closed
opened 2026-11-03 04:16:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2548
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/body-saddle-equipment-sync


📝 Commits (1)

  • bf64f86 Send a mob's body and saddle equipment to the single player window

📊 Changes

2 files changed (+19 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+4 -1)
📝 crates/horizon-client/src/game/remote.rs (+15 -4)

📄 Description

What and why

In single player the window is a client of the in-process server, and a mob's body armour and saddle never reached it. Horizon keeps the body slot's item (horse armour, llama carpet, happy ghast harness, nautilus armour) in extra.head, so mob_equipment sent it as the head slot (5), and the client only read slots 0 to 5 and ignored 6 and 7. Horse armour and llama carpets therefore did not show, and saddles never appeared.

  • Server (game/lan.rs): species that keep the body item in head send it as slot 6.
  • Client (game/remote.rs, C::SetEquipment): slot 6 sets that item, slot 5 is kept for the head of other mobs, and slot 7 sets or clears the saddle with its components, which the renderer and the riding checks read.

An empty slot is already sent by the entity diff, so taking armour or a saddle off clears it.

Vanilla reference

ClientboundSetEquipmentPacket slot ids (EquipmentSlot ordinals: body 6, saddle 7); ClientPacketListener.handleSetEquipment.

Self-check

cargo check -p horizon-client passes.


🔄 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/2548 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/body-saddle-equipment-sync` --- ### 📝 Commits (1) - [`bf64f86`](https://github.com/horizon-rust/horizon/commit/bf64f868d16bb757a6ce824575dd856a7edfccff) Send a mob's body and saddle equipment to the single player window ### 📊 Changes **2 files changed** (+19 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+4 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+15 -4) </details> ### 📄 Description ## What and why In single player the window is a client of the in-process server, and a mob's body armour and saddle never reached it. Horizon keeps the body slot's item (horse armour, llama carpet, happy ghast harness, nautilus armour) in `extra.head`, so `mob_equipment` sent it as the head slot (5), and the client only read slots 0 to 5 and ignored 6 and 7. Horse armour and llama carpets therefore did not show, and saddles never appeared. - Server (`game/lan.rs`): species that keep the body item in `head` send it as slot 6. - Client (`game/remote.rs`, `C::SetEquipment`): slot 6 sets that item, slot 5 is kept for the head of other mobs, and slot 7 sets or clears the saddle with its components, which the renderer and the riding checks read. An empty slot is already sent by the entity diff, so taking armour or a saddle off clears it. ## Vanilla reference `ClientboundSetEquipmentPacket` slot ids (`EquipmentSlot` ordinals: body 6, saddle 7); `ClientPacketListener.handleSetEquipment`. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:59 +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#4415
No description provided.