[PR #5640] [MERGED] Armor stand DisabledSlots and leads tied to another player #6408

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

📋 Pull Request Information

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

Base: main ← Head: fix/armor-stand-disabled-slots-and-lead-owner


📝 Commits (1)

  • c1348a3 Armor stand DisabledSlots and another player's lead are locked

📊 Changes

4 files changed (+69 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+24 -0)
📝 crates/horizon-client/src/entity_nbt.rs (+2 -0)
📝 crates/horizon-client/src/game/armor_stands.rs (+35 -1)
📝 crates/horizon-client/src/game/leads.rs (+8 -1)

📄 Description

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

Two small lock checks that were missing:

  • Armor stand DisabledSlots: the field was neither read nor saved, so locked stands (map-maker staples) could be emptied and filled. ArmorStand now keeps the bitmask; interactAt follows isDisabled (a disabled slot is FAIL; an empty hand takes from the main hand when the clicked slot is disabled) and swapItem (bit +8 stops taking from a filled slot, +16 putting into an empty one). The save writes it back.
  • Leads tied to another player: interact_leash untied a mob from any player's lead. Only the player it is tied to unties it (getLeashHolder() == player). Boats already did this check.

Added a unit test for the filter flags and the take/put locks. Checks run: cargo fmt, cargo clippy -p horizon-client --lib --bins --tests -D warnings. Not run: parity harnesses and lan_e2e.

🤖 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/5640 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/armor-stand-disabled-slots-and-lead-owner` --- ### 📝 Commits (1) - [`c1348a3`](https://github.com/horizon-rust/horizon/commit/c1348a3526840e230c11f06bbdaa76e31809e7be) Armor stand DisabledSlots and another player's lead are locked ### 📊 Changes **4 files changed** (+69 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+24 -0) 📝 `crates/horizon-client/src/entity_nbt.rs` (+2 -0) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+35 -1) 📝 `crates/horizon-client/src/game/leads.rs` (+8 -1) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Sonnet 5.5), not by rdbtCVS personally. Two small lock checks that were missing: - **Armor stand `DisabledSlots`**: the field was neither read nor saved, so locked stands (map-maker staples) could be emptied and filled. `ArmorStand` now keeps the bitmask; `interactAt` follows `isDisabled` (a disabled slot is FAIL; an empty hand takes from the main hand when the clicked slot is disabled) and `swapItem` (bit `+8` stops taking from a filled slot, `+16` putting into an empty one). The save writes it back. - **Leads tied to another player**: `interact_leash` untied a mob from any player's lead. Only the player it is tied to unties it (`getLeashHolder() == player`). Boats already did this check. Added a unit test for the filter flags and the take/put locks. Checks run: `cargo fmt`, `cargo clippy -p horizon-client --lib --bins --tests -D warnings`. Not run: parity harnesses and `lan_e2e`. 🤖 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-03 06:20:06 +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#6408
No description provided.