[PR #6865] [MERGED] Clear the rest-006 row for the rotation selector predicate #7156

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-rest-006


📝 Commits (1)

  • b61060e Clear the rest-006 row for the rotation selector predicate

📊 Changes

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

View changed files

📝 tools/port_map/rest-006.tsv (+1 -1)

📄 Description

tools/port_map/rest-006.tsv said EntitySelectorParser.createRotationPredicate was missing and
that @e[x_rotation=...]/@e[y_rotation=...] selected regardless of facing. main has it:

game/commands.rs::rotation_in wraps the bounds and the angle (wrap_degrees),
x_rotation is compared as the pitch and y_rotation as the yaw, and a range whose wrapped
minimum is above its maximum runs through 180 (angle >= min || angle <= max), with the 0 and 359
defaults. The selector's predicate calls it before an entity is selected.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-006.tsv on the build VM -
150 rows, no problems. The claim is from reading rotation_in and the two call sites in the
selector's predicate.

Not proven: no in-game check; this is a ledger verdict, not a behaviour change.


🔄 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/6865 **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-rest-006` --- ### 📝 Commits (1) - [`b61060e`](https://github.com/horizon-rust/horizon/commit/b61060e3879e95eb338d9f6384c4efbde73ee1e2) Clear the rest-006 row for the rotation selector predicate ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-006.tsv` (+1 -1) </details> ### 📄 Description `tools/port_map/rest-006.tsv` said `EntitySelectorParser.createRotationPredicate` was `missing` and that `@e[x_rotation=...]`/`@e[y_rotation=...]` selected regardless of facing. `main` has it: `game/commands.rs::rotation_in` wraps the bounds and the angle (`wrap_degrees`), `x_rotation` is compared as the pitch and `y_rotation` as the yaw, and a range whose wrapped minimum is above its maximum runs through 180 (`angle >= min || angle <= max`), with the 0 and 359 defaults. The selector's predicate calls it before an entity is selected. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-006.tsv` on the build VM - `150 rows, no problems.` The claim is from reading `rotation_in` and the two call sites in the selector's predicate. **Not proven:** no in-game check; this is a ledger verdict, not a behaviour change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:56 +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#7156
No description provided.