[PR #7144] [MERGED] Clear stale game2-011 rows main already implements #7374

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7144
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/ledger-game2-011.tsv


📝 Commits (1)

  • 621b9a1 Clear stale game2-011 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game2-011.tsv (+1 -1)

📄 Description

FixedBiomeSource.findBiomeHorizontal was left missing with an "unsure" note; the fixed-source search is in the tree on main and the row now cites it.

Rows:

  • FixedBiomeSource.findBiomeHorizontal — missing → port, crates/horizon-world/src/worldgen/structure/stronghold.rs::RingSearch::find_fixed. The one biome is allowed or it is not; an allowed one draws a random point of the square (two draws, no reservoir search), and the ring search keeps the ring chunk when it is not, which is where vanilla's null return lands.
  • FixedBiomeSource.findClosestBiome3d is left as it was: it already cites Pipeline::find_closest_biome.

map-check, both jars:

python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null
python3 tools/port_ledger.py map-check tools/port_map/game2-011.tsv
142 rows, no problems.

Proven: RingSearch::find_fixed was read on upstream/main: its doc cites FixedBiomeSource.findBiomeHorizontal, it tests the square's one biome against the preferred set, and on a match draws nextIntBound(r * 2 + 1) twice around the ring centre. The jar agrees that this override has no reservoir search: FixedBiomeSource.findBiomeHorizontal calls only RandomSource.nextInt and the BlockPos constructor. RingWork::help picks find_fixed when fixed_biome is set (worldgen/generator_structures.rs), so the port is wired to the fixed source rather than being dead code.

Not proven: the row does not claim the return type matches: vanilla returns a Pair<BlockPos, Holder<Biome>> and the port returns the ChunkPos its one caller (the stronghold ring search) wants, with the not-allowed case folded into the ring chunk instead of null. Nothing else in the file changed.


🔄 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/7144 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-game2-011.tsv` --- ### 📝 Commits (1) - [`621b9a1`](https://github.com/horizon-rust/horizon/commit/621b9a1b3f0c8cecb06c84a4865d8bac546d5732) Clear stale game2-011 rows main already implements ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-011.tsv` (+1 -1) </details> ### 📄 Description `FixedBiomeSource.findBiomeHorizontal` was left `missing` with an "unsure" note; the fixed-source search is in the tree on main and the row now cites it. Rows: - `FixedBiomeSource.findBiomeHorizontal` — `missing` → `port`, `crates/horizon-world/src/worldgen/structure/stronghold.rs::RingSearch::find_fixed`. The one biome is allowed or it is not; an allowed one draws a random point of the square (two draws, no reservoir search), and the ring search keeps the ring chunk when it is not, which is where vanilla's null return lands. - `FixedBiomeSource.findClosestBiome3d` is left as it was: it already cites `Pipeline::find_closest_biome`. map-check, both jars: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null python3 tools/port_ledger.py map-check tools/port_map/game2-011.tsv 142 rows, no problems. **Proven:** `RingSearch::find_fixed` was read on `upstream/main`: its doc cites `FixedBiomeSource.findBiomeHorizontal`, it tests the square's one biome against the preferred set, and on a match draws `nextIntBound(r * 2 + 1)` twice around the ring centre. The jar agrees that this override has no reservoir search: `FixedBiomeSource.findBiomeHorizontal` calls only `RandomSource.nextInt` and the `BlockPos` constructor. `RingWork::help` picks `find_fixed` when `fixed_biome` is set (`worldgen/generator_structures.rs`), so the port is wired to the fixed source rather than being dead code. **Not proven:** the row does not claim the return type matches: vanilla returns a `Pair<BlockPos, Holder<Biome>>` and the port returns the `ChunkPos` its one caller (the stronghold ring search) wants, with the not-allowed case folded into the ring chunk instead of null. Nothing else in the file changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:34 +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#7374
No description provided.