[PR #1452] [MERGED] One side_mask for the two datafixes, one test MobType for two mobs.rs tests #3533

Closed
opened 2026-11-03 04:10:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1452
Author: @ludovic111
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: chore/dedupe-side-mask-kind


📝 Commits (2)

  • ac811d4 One side_mask for the two datafixes, one test MobType for two mobs.rs tests
  • 5595db9 Merge remote-tracking branch 'origin/main' into chore/dedupe-side-mask-kind

📊 Changes

3 files changed (+5 additions, -77 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+2 -49)
📝 crates/horizon-world/src/datafix/chunk_flatten.rs (+2 -2)
📝 crates/horizon-world/src/datafix/chunk_leaves.rs (+1 -26)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Workstream 7 (review-plan.md §1 Duplication), the two small Rust duplicates:

  • datafix side_mask ×2: chunk_leaves.rs (LeavesFix) had a line-for-line copy of chunk_flatten.rs's getSideMask (ChunkPalettedStorageFix). Vanilla keeps two copies; we keep one, pub(super) in chunk_flatten, and LeavesFix uses it.
  • mobs.rs kind ×2: push_tests had its own copy of sensor_scan_tests' 46-line cow MobType; it now uses that one (test code only).

−76 / +5 lines, 3 files.

Self-check

  • cargo fmt --all -- --check: OK
  • cargo clippy -p horizon-world -p horizon-client --all-targets -- -D warnings: OK
  • cargo test -p horizon-world --lib: 159 passed; cargo test -p horizon-client --lib mobs::: 87 passed
  • Harness covering both datafixes, on an integration commit with the mob-brain PR: parity.py datafix (6 shards, every old-version world upgraded): 6 passed (shards 1-3 ~27 min each).
  • tools/parity.py --changed: horizon-world is touched, so ~313 harnesses: the rest left to CI.

Needs Ludovic

Nothing.

🤖 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/1452 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/dedupe-side-mask-kind` --- ### 📝 Commits (2) - [`ac811d4`](https://github.com/horizon-rust/horizon/commit/ac811d470883ef930f1041ccd34f8b857c8841d5) One side_mask for the two datafixes, one test MobType for two mobs.rs tests - [`5595db9`](https://github.com/horizon-rust/horizon/commit/5595db9077f831b955d576379f4592e4cb751a2b) Merge remote-tracking branch 'origin/main' into chore/dedupe-side-mask-kind ### 📊 Changes **3 files changed** (+5 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+2 -49) 📝 `crates/horizon-world/src/datafix/chunk_flatten.rs` (+2 -2) 📝 `crates/horizon-world/src/datafix/chunk_leaves.rs` (+1 -26) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Workstream 7 (review-plan.md §1 Duplication), the two small Rust duplicates: - **datafix `side_mask` ×2**: `chunk_leaves.rs` (LeavesFix) had a line-for-line copy of `chunk_flatten.rs`'s `getSideMask` (ChunkPalettedStorageFix). Vanilla keeps two copies; we keep one, `pub(super)` in chunk_flatten, and LeavesFix uses it. - **mobs.rs `kind` ×2**: `push_tests` had its own copy of `sensor_scan_tests`' 46-line cow `MobType`; it now uses that one (test code only). −76 / +5 lines, 3 files. ## Self-check - `cargo fmt --all -- --check`: OK - `cargo clippy -p horizon-world -p horizon-client --all-targets -- -D warnings`: OK - `cargo test -p horizon-world --lib`: 159 passed; `cargo test -p horizon-client --lib mobs::`: 87 passed - Harness covering both datafixes, on an integration commit with the mob-brain PR: `parity.py datafix` (6 shards, every old-version world upgraded): **6 passed** (shards 1-3 ~27 min each). - `tools/parity.py --changed`: horizon-world is touched, so ~313 harnesses: the rest left to CI. ## Needs Ludovic Nothing. 🤖 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 04:10:13 +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#3533
No description provided.