[PR #6975] [MERGED] Clear stale game2-014.tsv rows main already implements #7245

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game2-014


📝 Commits (3)

  • 221c9f1 Port map: two game2-014 Mirror rows main already ports
  • 62f3e55 Merge remote-tracking branch 'upstream/main' into HEAD
  • e57a64b Merge main into #6975

📊 Changes

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

View changed files

📝 tools/port_map/game2-014.tsv (+2 -2)

📄 Description

Two rows of tools/port_map/game2-014.tsv said missing (unsure) for mirror behaviour the code has.

  • Mirror.mirror → crates/horizon-world/src/worldgen/structure/processor.rs::turn_facing (inline): a hanging entity's Facing takes the same axis flips — LEFT_RIGHT swaps north and south, FRONT_BACK west and east — before the template rotation is applied. A block state's mirrored result comes from the exported per-state table instead (StateTransforms::mirror, blocks/structure-blocks.json).
  • Mirror.getRotation → crates/horizon-world/src/worldgen/structure/processor.rs::turn_facing (inline): the 180° turn an axis-flipped facing implies is the swap turn_facing makes (HangingEntity.mirror is rotate(mirror.getRotation(direction)), and for a horizontal facing that is the same direction); for a block state it is already in the exported mirror table.

The "16-step rotations for banners and heads" the old note worried about are block state rotation properties, so their mirrored values are in the exported table too.

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

Proven: Mirror.mirror(Direction)'s bytecode flips the X axis for FRONT_BACK and the Z axis for LEFT_RIGHT, which is what turn_facing's two swaps do; Mirror.getRotation(Direction) returns CLOCKWISE_180 for exactly those axis-flipped cases, and HangingEntity.mirror is that rotation, so the facing ends in the same place turn_facing puts it; every block state's mirrored result is the exported table's mirror column, which map-check resolves over 144 rows.

Not proven: nothing was run — no structure with a mirrored painting, item frame, banner or head was placed to see it turn; the equivalence is read from the bytecode of both sides and from turn_facing.


🔄 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/6975 **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-014` --- ### 📝 Commits (3) - [`221c9f1`](https://github.com/horizon-rust/horizon/commit/221c9f15eb7c5862904710e3c686a3240c886750) Port map: two game2-014 Mirror rows main already ports - [`62f3e55`](https://github.com/horizon-rust/horizon/commit/62f3e5511e43325308fc647938c4e8faeb29a46b) Merge remote-tracking branch 'upstream/main' into HEAD - [`e57a64b`](https://github.com/horizon-rust/horizon/commit/e57a64bc787803ef6d3c409886c071b637f59f78) Merge main into #6975 ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-014.tsv` (+2 -2) </details> ### 📄 Description Two rows of `tools/port_map/game2-014.tsv` said `missing` (`unsure`) for mirror behaviour the code has. - `Mirror.mirror` → `crates/horizon-world/src/worldgen/structure/processor.rs::turn_facing` (inline): a hanging entity's `Facing` takes the same axis flips — `LEFT_RIGHT` swaps north and south, `FRONT_BACK` west and east — before the template rotation is applied. A block state's mirrored result comes from the exported per-state table instead (`StateTransforms::mirror`, `blocks/structure-blocks.json`). - `Mirror.getRotation` → `crates/horizon-world/src/worldgen/structure/processor.rs::turn_facing` (inline): the 180° turn an axis-flipped facing implies is the swap `turn_facing` makes (`HangingEntity.mirror` is `rotate(mirror.getRotation(direction))`, and for a horizontal facing that is the same direction); for a block state it is already in the exported mirror table. The "16-step rotations for banners and heads" the old note worried about are block state `rotation` properties, so their mirrored values are in the exported table too. ``` python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/game2-014.tsv 144 rows, no problems. ``` **Proven:** `Mirror.mirror(Direction)`'s bytecode flips the X axis for `FRONT_BACK` and the Z axis for `LEFT_RIGHT`, which is what `turn_facing`'s two swaps do; `Mirror.getRotation(Direction)` returns `CLOCKWISE_180` for exactly those axis-flipped cases, and `HangingEntity.mirror` is that rotation, so the facing ends in the same place `turn_facing` puts it; every block state's mirrored result is the exported table's `mirror` column, which `map-check` resolves over 144 rows. **Not proven:** nothing was run — no structure with a mirrored painting, item frame, banner or head was placed to see it turn; the equivalence is read from the bytecode of both sides and from `turn_facing`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:19 +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#7245
No description provided.