[PR #4516] [MERGED] Route vanilla server block writes through level updates #5669

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

📋 Pull Request Information

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

Base: main ← Head: vanilla-server-block-writes


📝 Commits (1)

  • a02d0c4 Route server block changes through level updates

📊 Changes

8 files changed (+42 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+24 -10)
📝 crates/horizon-client/src/game/block_entity_ticks.rs (+1 -1)
📝 crates/horizon-client/src/game/creatures.rs (+8 -3)
📝 crates/horizon-client/src/game/stations.rs (+5 -1)
📝 crates/horizon-client/src/mobs.rs (+1 -0)
📝 crates/horizon-client/src/mobs/goals.rs (+1 -0)
📝 crates/horizon-client/src/mobs/golem.rs (+1 -0)
📝 crates/horizon-client/src/mobs/villager_brain.rs (+1 -0)

📄 Description

🤖 Opened by Aria's agent swarm, Dyna, not by Aria.

Route furnace lit changes, brewing-stand bottle changes, portal lighting, and mob block changes through Level.setBlock. These writes previously bypassed the level path and native_block_changed.

Use the vanilla caller's flags: furnace, villager planting, snow golem, and silverfish use UPDATE_ALL (3); brewing stands and sheep use UPDATE_CLIENTS (2); portal filling uses UPDATE_CLIENTS | UPDATE_KNOWN_SHAPE (18). Portal blocks also follow BlockPos.betweenClosed order. These choices follow vanilla 26.3's AbstractFurnaceBlockEntity.serverTick, BrewingStandBlockEntity.serverTick, PortalShape.createPortalBlocks, HarvestFarmland, SnowGolem, EatBlockGoal, and Silverfish.

Fixes #4422.

Checks on rebased head a02d0c4a1a95d8d8e31a9f9eb77fb2792c4ba878: 16 native hook tests and scoped clippy passed, with two unrelated Rust 1.96 baseline lints allowed (manual_range_contains, nonminimal_bool). A throwaway native mixin observed an unlit furnace become lit and all six portal blocks appear in the real game. This passed on the server thread and on a dedicated server. The pre-rebase patch is identical (git range-diff). On the pre-rebase head, affected parity harnesses passed except remote_fireball and remote_fireworks. On base 22ad79ba0113ec08eb7c907d91ef7779ee894ba6, remote_fireball reproduced the same server-thread two-sample visibility failure. A branch retry reproduced the base server-thread remote_fireworks failure: no guest red burst. Both revisions also failed different screenshot assertions in the deprecated in-frame mode. server_player_sculk passed after its built-in retry. friends_integration passed under Xvfb after the original no-display failure, which also reproduced on base.

🤖 Generated with Dyna


🔄 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/4516 **Author:** [@arismoko](https://github.com/arismoko) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `vanilla-server-block-writes` --- ### 📝 Commits (1) - [`a02d0c4`](https://github.com/horizon-rust/horizon/commit/a02d0c4a1a95d8d8e31a9f9eb77fb2792c4ba878) Route server block changes through level updates ### 📊 Changes **8 files changed** (+42 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+24 -10) 📝 `crates/horizon-client/src/game/block_entity_ticks.rs` (+1 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+8 -3) 📝 `crates/horizon-client/src/game/stations.rs` (+5 -1) 📝 `crates/horizon-client/src/mobs.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/goals.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/golem.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/villager_brain.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Aria's agent swarm, Dyna, not by Aria. Route furnace lit changes, brewing-stand bottle changes, portal lighting, and mob block changes through `Level.setBlock`. These writes previously bypassed the level path and `native_block_changed`. Use the vanilla caller's flags: furnace, villager planting, snow golem, and silverfish use `UPDATE_ALL` (3); brewing stands and sheep use `UPDATE_CLIENTS` (2); portal filling uses `UPDATE_CLIENTS | UPDATE_KNOWN_SHAPE` (18). Portal blocks also follow `BlockPos.betweenClosed` order. These choices follow vanilla 26.3's `AbstractFurnaceBlockEntity.serverTick`, `BrewingStandBlockEntity.serverTick`, `PortalShape.createPortalBlocks`, `HarvestFarmland`, `SnowGolem`, `EatBlockGoal`, and `Silverfish`. Fixes #4422. Checks on rebased head `a02d0c4a1a95d8d8e31a9f9eb77fb2792c4ba878`: 16 native hook tests and scoped clippy passed, with two unrelated Rust 1.96 baseline lints allowed (`manual_range_contains`, `nonminimal_bool`). A throwaway native mixin observed an unlit furnace become lit and all six portal blocks appear in the real game. This passed on the server thread and on a dedicated server. The pre-rebase patch is identical (`git range-diff`). On the pre-rebase head, affected parity harnesses passed except `remote_fireball` and `remote_fireworks`. On base `22ad79ba0113ec08eb7c907d91ef7779ee894ba6`, `remote_fireball` reproduced the same server-thread two-sample visibility failure. A branch retry reproduced the base server-thread `remote_fireworks` failure: no guest red burst. Both revisions also failed different screenshot assertions in the deprecated in-frame mode. `server_player_sculk` passed after its built-in retry. `friends_integration` passed under Xvfb after the original no-display failure, which also reproduced on base. 🤖 Generated with Dyna --- <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:12 +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#5669
No description provided.