[PR #5634] [MERGED] A removed vehicle empties its container and removes its menu stand-in #6403

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

📋 Pull Request Information

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

Base: main ← Head: fix/removed-entity-drops-contents


📝 Commits (1)

  • 1e3758f A removed vehicle empties its container and drops its stand-in

📊 Changes

5 files changed (+34 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/boats.rs (+2 -0)
📝 crates/horizon-client/src/game/commands.rs (+5 -1)
📝 crates/horizon-client/src/game/minecarts.rs (+22 -0)
📝 crates/horizon-client/src/game/nether_portal.rs (+2 -0)
📝 crates/horizon-client/src/game/persist.rs (+3 -0)

📄 Description

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

A chest boat or chest/hopper minecart that is open in a menu keeps its slots in a stand-in under a placeholder key. Removing the vehicle (broken, killed with /kill, exploded, a rider's death, a portal) dropped the vehicle's stale items and left the stand-in with a full copy that a stale menu could still take from (duplication).

release_vehicle_container now runs before each removal: the open menu's live slots go back to the vehicle (so they are what drops, as Containers.dropContents / AbstractChestBoat.remove do, or what travels through a portal), then the stand-in leaves the level.

Mounts need no change: their menu is rebuilt from the live mob on every click, so a removed mount leaves nothing to take.

Checks run: cargo fmt, cargo clippy -p horizon-client --lib --bins -D warnings. Not run: lan_e2e and the parity harnesses (no vanilla data in this checkout).

🤖 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/5634 **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/removed-entity-drops-contents` --- ### 📝 Commits (1) - [`1e3758f`](https://github.com/horizon-rust/horizon/commit/1e3758f6c1a71b2b0c0776a4d87d5a9b833f79e8) A removed vehicle empties its container and drops its stand-in ### 📊 Changes **5 files changed** (+34 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/boats.rs` (+2 -0) 📝 `crates/horizon-client/src/game/commands.rs` (+5 -1) 📝 `crates/horizon-client/src/game/minecarts.rs` (+22 -0) 📝 `crates/horizon-client/src/game/nether_portal.rs` (+2 -0) 📝 `crates/horizon-client/src/game/persist.rs` (+3 -0) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Sonnet 5.5), not by rdbtCVS personally. A chest boat or chest/hopper minecart that is open in a menu keeps its slots in a stand-in under a placeholder key. Removing the vehicle (broken, killed with `/kill`, exploded, a rider's death, a portal) dropped the vehicle's stale items and left the stand-in with a full copy that a stale menu could still take from (duplication). `release_vehicle_container` now runs before each removal: the open menu's live slots go back to the vehicle (so they are what drops, as `Containers.dropContents` / `AbstractChestBoat.remove` do, or what travels through a portal), then the stand-in leaves the level. Mounts need no change: their menu is rebuilt from the live mob on every click, so a removed mount leaves nothing to take. Checks run: `cargo fmt`, `cargo clippy -p horizon-client --lib --bins -D warnings`. Not run: `lan_e2e` and the parity harnesses (no vanilla data in this checkout). 🤖 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:19: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#6403
No description provided.