[PR #960] [MERGED] Carry: write Lithostitched's processor references in #2943

Closed
opened 2026-11-02 16:00:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/carry-processor-references


📝 Commits (1)

  • 8e095b8 Carry: write Lithostitched's processor references in

📊 Changes

1 file changed (+99 additions, -3 deletions)

View changed files

📝 crates/horizon-port-pack/src/processors.rs (+99 -3)

📄 Description

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

What

Lithostitched's reference processor runs the processors of other processor lists in turn. ChoiceTheorem's Overhauled Village (CTOV) builds most of its village lists this way: a house's list references the village's house and road lists. Carry dropped the reference as Java, so those lists placed their templates undecorated. Carry now writes the referenced lists' processors in its place: in order, references inside them too (to a depth of 8), read from the mod's own worldgen/processor_list/ files. This is exactly what the processor does block by block, since a list already stops at the first processor that removes a block. The written-in processors then go through the rest of carry (data forms, rule tests, block states, dropping what is Java). A reference to a tag or to a list the mod lacks stays, and is dropped and counted as before.

Proof (ATM10's 42 data-tier mods)

  • lithostitched:reference dropped: 83 → 0 (87 written in, nested ones included).
  • CTOV's 281 processor lists: empty ones 115 → 56, vanilla processors running in them 56 → 199 (rule processors, such as the cracked and mossy brick ones).
  • Totals in the reports go from 1,154 dropped / 273 carried to 1,246 / 360. Dropped goes up because the written-in lists carry Lithostitched's apply_random (24 → 170 copies) and condition (23 → 46) along. These are still dropped, and the game does not run them yet.
  • New test lithostitched_references_are_written_in: nested references in order, a block swap inside carried, a tag and a missing list left alone.

Self-check

cargo fmt --all --check                                   ok
cargo clippy -p horizon-port-pack --all-targets -- -D warnings   ok
cargo test -p horizon-port-pack                           44 passed

No game code here. Structure starts don't change (processors only change blocks).

Nothing needs Ludovic.

🤖 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/960 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/carry-processor-references` --- ### 📝 Commits (1) - [`8e095b8`](https://github.com/horizon-rust/horizon/commit/8e095b88fa9eb2a1036e85702cc1190d55c96dd2) Carry: write Lithostitched's processor references in ### 📊 Changes **1 file changed** (+99 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/processors.rs` (+99 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Lithostitched's `reference` processor runs the processors of other processor lists in turn. ChoiceTheorem's Overhauled Village (CTOV) builds most of its village lists this way: a house's list references the village's `house` and `road` lists. Carry dropped the reference as Java, so those lists placed their templates undecorated. Carry now writes the referenced lists' processors in its place: in order, references inside them too (to a depth of 8), read from the mod's own `worldgen/processor_list/` files. This is exactly what the processor does block by block, since a list already stops at the first processor that removes a block. The written-in processors then go through the rest of carry (data forms, rule tests, block states, dropping what is Java). A reference to a tag or to a list the mod lacks stays, and is dropped and counted as before. ## Proof (ATM10's 42 data-tier mods) - `lithostitched:reference` dropped: 83 → 0 (87 written in, nested ones included). - CTOV's 281 processor lists: empty ones 115 → 56, vanilla processors running in them 56 → 199 (rule processors, such as the cracked and mossy brick ones). - Totals in the reports go from 1,154 dropped / 273 carried to 1,246 / 360. Dropped goes up because the written-in lists carry Lithostitched's `apply_random` (24 → 170 copies) and `condition` (23 → 46) along. These are still dropped, and the game does not run them yet. - New test `lithostitched_references_are_written_in`: nested references in order, a block swap inside carried, a tag and a missing list left alone. ## Self-check ``` cargo fmt --all --check ok cargo clippy -p horizon-port-pack --all-targets -- -D warnings ok cargo test -p horizon-port-pack 44 passed ``` No game code here. Structure starts don't change (processors only change blocks). Nothing needs Ludovic. 🤖 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-02 16:00:17 +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#2943
No description provided.