[PR #7129] [MERGED] Clear stale game2-010 rows main already implements #7361

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 412583d Clear stale game2-010 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game2-010.tsv (+4 -4)

📄 Description

Four rows of tools/port_map/game2-010.tsv were left missing with an "unsure" note; each behaviour is in the tree on main, so each now cites where it is done.

Rows:

  • Level.loadedAndEntityCanStandOnFace — missing → inline, crates/horizon-client/src/mobs/shulker.rs::can_stay_at. The supporting block's face toward the shell is tested for sturdiness (BlockState.entityCanStandOnFace) before the opened shell's box; the chunk-loaded half of the test is the sim's own world.
  • BlockGetter.clipWithInteractionOverride — missing → port, crates/horizon-world/src/world_ray.rs::clip_with_interaction. The block's interaction shape is clipped as well, and when it lands nearer the hit takes its direction from it.
  • ChunkPos.distanceSquared — missing → inline, crates/horizon-client/src/lan/hub.rs::requeue_ring. The pending chunk queue is sorted by the squared chunk distance, the one use vanilla makes of it (PlayerChunkSender.collectChunksToSend), the same way ChunkPos.getChessboardDistance is folded into the ticket level loop.
  • LevelReader.findBlocksInBoxByManhattanDistance — missing → inline, crates/horizon-client/src/mobs/bee.rs::manhattan_box. The box walked in vanilla's order (BlockPos.withinBoxByManhattanDistance), with the first-match search over it inlined at the caller, Pollinate::find_flower for findNearbyFlower.

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-010.tsv
140 rows, no problems.

Proven: each cited fn was read on upstream/main; BlockGetter.clipWithInteractionOverride clips the block's interaction shape and takes its direction when it lands nearer (getInteractionShape, withDirection, lengthSqr), which clip_with_interaction does step for step, and Shulker.canStayAt (its only caller of loadedAndEntityCanStandOnFace besides the block-state wrapper) is where can_stay_at makes the same test. LevelReader.findBlocksInBoxByManhattanDistance is findBlocksIn over BlockPos.withinBoxByManhattanDistance in the jar, and manhattan_box is that enumeration, used by the bee's flower search; ChunkPos.distanceSquared is called only by PlayerChunkSender.collectChunksToSend, which requeue_ring's sort mirrors.

Not proven: the other unsure rows of the file are untouched. Level.getChunk and LevelReader.getChunk have no full-chunk getter to cite (block reads go through the column and World), Level.playSeededSound no seeded path, Level.getWorldBorderAdjustedRespawnData no border clamp of a respawn point (the border is only consulted in can_dismount_to), Level.hasEntities no entity-in-box test, ChunkPos.maxFromRegion no region-scan bound, and CollisionGetter.clipIncludingBorder no border clamp of a ray: those stay missing.


🔄 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/7129 **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-010.tsv` --- ### 📝 Commits (1) - [`412583d`](https://github.com/horizon-rust/horizon/commit/412583dfb5e862b234d4340958f27f63a3b99bea) Clear stale game2-010 rows main already implements ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-010.tsv` (+4 -4) </details> ### 📄 Description Four rows of `tools/port_map/game2-010.tsv` were left `missing` with an "unsure" note; each behaviour is in the tree on main, so each now cites where it is done. Rows: - `Level.loadedAndEntityCanStandOnFace` — `missing` → `inline`, `crates/horizon-client/src/mobs/shulker.rs::can_stay_at`. The supporting block's face toward the shell is tested for sturdiness (`BlockState.entityCanStandOnFace`) before the opened shell's box; the chunk-loaded half of the test is the sim's own world. - `BlockGetter.clipWithInteractionOverride` — `missing` → `port`, `crates/horizon-world/src/world_ray.rs::clip_with_interaction`. The block's interaction shape is clipped as well, and when it lands nearer the hit takes its direction from it. - `ChunkPos.distanceSquared` — `missing` → `inline`, `crates/horizon-client/src/lan/hub.rs::requeue_ring`. The pending chunk queue is sorted by the squared chunk distance, the one use vanilla makes of it (`PlayerChunkSender.collectChunksToSend`), the same way `ChunkPos.getChessboardDistance` is folded into the ticket level loop. - `LevelReader.findBlocksInBoxByManhattanDistance` — `missing` → `inline`, `crates/horizon-client/src/mobs/bee.rs::manhattan_box`. The box walked in vanilla's order (`BlockPos.withinBoxByManhattanDistance`), with the first-match search over it inlined at the caller, `Pollinate::find_flower` for `findNearbyFlower`. 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-010.tsv 140 rows, no problems. **Proven:** each cited fn was read on `upstream/main`; `BlockGetter.clipWithInteractionOverride` clips the block's interaction shape and takes its direction when it lands nearer (`getInteractionShape`, `withDirection`, `lengthSqr`), which `clip_with_interaction` does step for step, and `Shulker.canStayAt` (its only caller of `loadedAndEntityCanStandOnFace` besides the block-state wrapper) is where `can_stay_at` makes the same test. `LevelReader.findBlocksInBoxByManhattanDistance` is `findBlocksIn` over `BlockPos.withinBoxByManhattanDistance` in the jar, and `manhattan_box` is that enumeration, used by the bee's flower search; `ChunkPos.distanceSquared` is called only by `PlayerChunkSender.collectChunksToSend`, which `requeue_ring`'s sort mirrors. **Not proven:** the other `unsure` rows of the file are untouched. `Level.getChunk` and `LevelReader.getChunk` have no full-chunk getter to cite (block reads go through the column and `World`), `Level.playSeededSound` no seeded path, `Level.getWorldBorderAdjustedRespawnData` no border clamp of a respawn point (the border is only consulted in `can_dismount_to`), `Level.hasEntities` no entity-in-box test, `ChunkPos.maxFromRegion` no region-scan bound, and `CollisionGetter.clipIncludingBorder` no border clamp of a ray: those stay `missing`. --- <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:18 +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#7361
No description provided.