[GH-ISSUE #6077] Native mods: mod container viewers miss the host's own player and golems #1962

Closed
opened 2026-11-02 15:50:57 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xmilon on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6077

Originally assigned to: @Xmilon on GitHub.

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

Follow-up to #6047 (PR #6049). native_mod_container_viewers counts the players with a mod container open from tick_guests, so:

  1. In-frame, the host's own player is never counted (tick_guests only counts guests, and does not run at all without LAN).
  2. Openers that are not players are missed: vanilla's ContainerOpenersCounter counts any ContainerUser, such as a copper golem (chest_openers).

Fix: count every tick from tick_world, adding the host's open container (Game::container, not a spectator) and the golems' chest_openers.

🤖 Generated with Claude Code

Originally created by @Xmilon on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6077 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Xmilon's AI agent (Claude Code, Sonnet 5.5), not by Xmilon personally. Follow-up to #6047 (PR #6049). `native_mod_container_viewers` counts the players with a mod container open from `tick_guests`, so: 1. In-frame, the host's own player is never counted (`tick_guests` only counts guests, and does not run at all without LAN). 2. Openers that are not players are missed: vanilla's `ContainerOpenersCounter` counts any `ContainerUser`, such as a copper golem (`chest_openers`). Fix: count every tick from `tick_world`, adding the host's open container (`Game::container`, not a spectator) and the golems' `chest_openers`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6560529610 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#1962
No description provided.