[PR #5579] [MERGED] Spin the vault's display item on remote clients #6366

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

📋 Pull Request Information

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

Base: main ← Head: fix/3108-vault-display-spin


📝 Commits (1)

  • 569bd24 Spin the vault's display item on remote clients

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/spawner.rs (+8 -1)

📄 Description

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

The item shown inside a vault never turned in single player (server thread), on LAN, or on a dedicated server.

Why: Vault::update_display_item_spin only runs from client_tick_vault, and client_tick_vault was only called from the server-side tick_vault. On a remote client (the default single-player path since #1514), tick_remote_spawners ticked Spawner and TrialSpawner block entities but skipped Vault. The display item itself did reach the client: lan/chunks.rs sends VaultBlockEntity.getUpdateTag (the shared data with display_item), and remote.rs keeps the client-only spin across updates.

Change: tick_remote_spawners now ticks every nearby vault with client_tick_vault. In vanilla, VaultBlock.getTicker on the client returns VaultBlockEntity.Client.tick, which spins the display item and plays the idle particles and ambient sound. Those particles and that sound were missing on remote clients too, so this brings them back as well.

Fixes #3108

Tests run

  • cargo clippy -p horizon-client --all-targets -- -D warnings: clean
  • cargo test -p horizon-client --bins vault / cargo test -p horizon-client-render --lib vault: 3 passed
  • python3 tools/pr_ready.py --quick: hit my 10-minute limit before it finished, so there is no result block. CI's checks will cover it.
  • No unit test: the bin has no way to build a Game in a test, so this path can't be unit-tested.

🤖 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/5579 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/3108-vault-display-spin` --- ### 📝 Commits (1) - [`569bd24`](https://github.com/horizon-rust/horizon/commit/569bd24ac9c565dea90360df06b1b067b147a717) Spin the vault's display item on remote clients ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/spawner.rs` (+8 -1) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. The item shown inside a vault never turned in single player (server thread), on LAN, or on a dedicated server. **Why:** `Vault::update_display_item_spin` only runs from `client_tick_vault`, and `client_tick_vault` was only called from the server-side `tick_vault`. On a remote client (the default single-player path since #1514), `tick_remote_spawners` ticked `Spawner` and `TrialSpawner` block entities but skipped `Vault`. The display item itself did reach the client: `lan/chunks.rs` sends `VaultBlockEntity.getUpdateTag` (the shared data with `display_item`), and `remote.rs` keeps the client-only spin across updates. **Change:** `tick_remote_spawners` now ticks every nearby vault with `client_tick_vault`. In vanilla, `VaultBlock.getTicker` on the client returns `VaultBlockEntity.Client.tick`, which spins the display item and plays the idle particles and ambient sound. Those particles and that sound were missing on remote clients too, so this brings them back as well. Fixes #3108 **Tests run** - `cargo clippy -p horizon-client --all-targets -- -D warnings`: clean - `cargo test -p horizon-client --bins vault` / `cargo test -p horizon-client-render --lib vault`: 3 passed - `python3 tools/pr_ready.py --quick`: hit my 10-minute limit before it finished, so there is no result block. CI's checks will cover it. - No unit test: the bin has no way to build a `Game` in a test, so this path can't be unit-tested. 🤖 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:14 +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#6366
No description provided.