[PR #6984] [MERGED] Clear stale game-004.tsv rows main already implements #7251

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-004


📝 Commits (1)

  • c4b8a27 Clear stale game-004.tsv rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game-004.tsv (+3 -3)

📄 Description

Three rows in tools/port_map/game-004.tsv said missing while main already implements them.

row verdict where
MobEffectInstance.BlendState.setImmediate port crates/horizon-world/src/status_effect.rs::EffectInstance::skip_blending
Display.setTransformation port crates/horizon-client/src/game/native_entities.rs::Game::native_set_display
Display.TextDisplay.loadFlag inline crates/horizon-client/src/text_display.rs::text_display_data

python3 tools/port_ledger.py map-check tools/port_map/game-004.tsv → 100 rows, no problems.

Proven:

  • BlendState.setImmediate — javap: factor and factorPreviousFrame are both set to hasEffect ? 1 : 0. EffectInstance::skip_blending writes blend.factor and blend.previous to the same target (1.0 when the effect outlives the advance, else 0.0).
  • Display.setTransformation — Game::native_set_display checks the entity is a block_display, item_display or text_display and writes the transformation (translation, left rotation, scale, right rotation), the interpolation and teleport durations and the interpolation start into its saved tag, so players ease from what it showed.
  • TextDisplay.loadFlag — javap: getBooleanOr(key, false) ? flags | bit : flags, called for shadow (1), see_through (2) and default_background (4), then the alignment bits. text_display_data builds the same flag byte from those three keys plus alignment (left 8, right 16).

Not proven:

  • AreaEffectCloud.readAdditionalSaveData / addAdditionalSaveData stay missing: nothing reads or writes cloud NBT (game/persist.rs, entity_nbt.rs have no cloud branch), so a saved cloud is still lost.
  • Display.addAdditionalSaveData, Display.setBrightnessOverride, Display.getTeamColor, Display.TextDisplay.storeFlag and Display.TextDisplay.addAdditionalSaveData stay missing: only the read side exists, nothing writes a display's values back, brightness is only read into the synced value, and glow_color is kept with no outline drawn.
  • loadFlag reads any non-zero number as set where vanilla's getBooleanOr wants a byte.

🔄 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/6984 **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-game-004` --- ### 📝 Commits (1) - [`c4b8a27`](https://github.com/horizon-rust/horizon/commit/c4b8a27657799d27e1ad6f4cb4f54824272fdc96) Clear stale game-004.tsv rows main already implements ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-004.tsv` (+3 -3) </details> ### 📄 Description Three rows in `tools/port_map/game-004.tsv` said `missing` while main already implements them. | row | verdict | where | | --- | --- | --- | | `MobEffectInstance.BlendState.setImmediate` | port | `crates/horizon-world/src/status_effect.rs::EffectInstance::skip_blending` | | `Display.setTransformation` | port | `crates/horizon-client/src/game/native_entities.rs::Game::native_set_display` | | `Display.TextDisplay.loadFlag` | inline | `crates/horizon-client/src/text_display.rs::text_display_data` | `python3 tools/port_ledger.py map-check tools/port_map/game-004.tsv` → `100 rows, no problems.` **Proven:** - `BlendState.setImmediate` — javap: `factor` and `factorPreviousFrame` are both set to `hasEffect ? 1 : 0`. `EffectInstance::skip_blending` writes `blend.factor` and `blend.previous` to the same target (1.0 when the effect outlives the advance, else 0.0). - `Display.setTransformation` — `Game::native_set_display` checks the entity is a `block_display`, `item_display` or `text_display` and writes the transformation (translation, left rotation, scale, right rotation), the interpolation and teleport durations and the interpolation start into its saved tag, so players ease from what it showed. - `TextDisplay.loadFlag` — javap: `getBooleanOr(key, false) ? flags | bit : flags`, called for `shadow` (1), `see_through` (2) and `default_background` (4), then the alignment bits. `text_display_data` builds the same flag byte from those three keys plus `alignment` (left 8, right 16). **Not proven:** - `AreaEffectCloud.readAdditionalSaveData` / `addAdditionalSaveData` stay `missing`: nothing reads or writes cloud NBT (`game/persist.rs`, `entity_nbt.rs` have no cloud branch), so a saved cloud is still lost. - `Display.addAdditionalSaveData`, `Display.setBrightnessOverride`, `Display.getTeamColor`, `Display.TextDisplay.storeFlag` and `Display.TextDisplay.addAdditionalSaveData` stay `missing`: only the read side exists, nothing writes a display's values back, `brightness` is only read into the synced value, and `glow_color` is kept with no outline drawn. - `loadFlag` reads any non-zero number as set where vanilla's `getBooleanOr` wants a byte. --- <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:25 +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#7251
No description provided.