[PR #4666] [MERGED] Close a dead guest's open container on respawn #5766

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4666
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/00-container-death


📝 Commits (1)

  • 2052e55 Close a dead guest's open container when it respawns

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+5 -0)

📄 Description

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

Part of #3518

Rows

  • AbstractContainerScreen.tick: a dead player's open container is closed (vanilla player.closeContainer()). A guest that died with a chest, barrel or shulker open kept it counted as open (lid up) for good; guest_respawn (the old player is removed) now runs guest_container_closed (opener count, close sound) and hub.close_container. Stations/crafting grids are left as they were.

Vanilla methods followed

AbstractContainerScreen.tick, ServerPlayer.closeContainer/doCloseContainer, PlayerList.respawn.

Tests

cargo clippy -p horizon-client --bins -- -D warnings clean. No unit test: the path needs a running LAN host.

🤖 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/4666 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/00-container-death` --- ### 📝 Commits (1) - [`2052e55`](https://github.com/horizon-rust/horizon/commit/2052e55b0b82bcd3b54de9bdbcfe33ab9f0cfd80) Close a dead guest's open container when it respawns ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+5 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 ## Rows - `AbstractContainerScreen.tick`: a dead player's open container is closed (vanilla `player.closeContainer()`). A guest that died with a chest, barrel or shulker open kept it counted as open (lid up) for good; `guest_respawn` (the old player is removed) now runs `guest_container_closed` (opener count, close sound) and `hub.close_container`. Stations/crafting grids are left as they were. ## Vanilla methods followed `AbstractContainerScreen.tick`, `ServerPlayer.closeContainer`/`doCloseContainer`, `PlayerList.respawn`. ## Tests `cargo clippy -p horizon-client --bins -- -D warnings` clean. No unit test: the path needs a running LAN host. 🤖 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 05:14:51 +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#5766
No description provided.