[PR #7106] [MERGED] Clear stale game-002 rows main already implements #7343

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-002-2


📝 Commits (1)

  • 36744cd port map: clear game-002 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game-002.tsv (+14 -14)

📄 Description

tools/port_map/game-002.tsv had two rows saying missing for behaviour main has, and
twelve notes describing gaps that have since closed.

Rows flipped to inline:

  • ServerPlayer.saveEnderPearls -> game/persist.rs::Game::entity_chunks: a thrown pearl is
    written with its chunk as an ordinary entity (entity_nbt::throwable_to_nbt) rather than
    into the player file. What is left: a pearl in a chunk that never saves, a stasis
    chamber's, is not kept.
  • ServerPlayer.loadAndSpawnEnderPearl -> game/persist.rs::Game::spawn_loaded_entities:
    entity_nbt::throwable_from_nbt spawns a saved pearl back, in the chunk's own level, so
    there is no per-player list to read.

Notes corrected where the gap has closed (the verdicts were already right):

  • ServerPlayer.triggerDimensionChangeTriggers: the note said nether_travel was never
    triggered, so Subspace Bubble could not be earned. It fires on the way back to the
    Overworld from the position the Nether was entered at (adv.marks.nether, set in
    trigger_dimension). What is left: that position is not restored from
    entered_nether_pos after a reload.
  • ServerPlayer.onEffectUpdated / onEffectsRemoved: the notes said the effects_changed
    trigger did not exist. It does (advancements.rs::Game::trigger_effects_changed, from the
    end-of-tick comparison of the effect list). What is left: that comparison reads the host
    player's list, while Hub::sync_effects only sends a guest its effects.
  • ServerLevel.EntityCallbacks.onDestroyed: a dead non-player entity also runs
    Scoreboard.entityRemoved (game/scoreboard.rs::score_entity_removed): its scores are
    reset and it leaves its team.
  • ServerPlayer.storeGameTypes: previousPlayerGameType is saved after all
    (Level::player_tag, absent when unset as storeNullable is) and read back into
    previous_game_mode.
  • ServerPlayer.getKnownSpeed: a rider's speed is its root vehicle's (mob_speed walks up
    the mounts); a guest's is the movement it last reported.
  • ServerPlayer.readAdditionalSaveData / addAdditionalSaveData: post_effects and
    previousPlayerGameType are read and written now, so they leave the list of keys that only
    survive verbatim in player_extra (entered_nether_pos,
    last_explosion_impact_pos, spawn_extra_particles_on_fall).
  • ServerPlayer.addPostEffect / clearPostEffects / removePostEffect: the lists are per
    target (change_post_effects), a guest's lives on its record and is sent when it changes
    (Hub::send_post_effects), and the client builds its post chain from the player's — not
    one shared list and no shader.
  • ServerPlayer.registerAndUpdateEnderPearlTicket stays missing, but its note no longer
    says pearls are never saved: they are saved with a chunk that saves, they just hold no
    chunk of their own (ENDER_PEARL ticket).

Left alone as genuinely absent: ServerLevel.getEntityInAnyDimension (owner and target
references still resolve in the level in place, parked levels are not searched) and
registerAndUpdateEnderPearlTicket. The other gap: notes in the file still hold — the
within_border stub in the interact path, the distance-based broadcast_near sends, the
mob target check that reads the one player a mob sees, the path not recomputed on a block
update, and the broken-armour statistic.

PORT_LEDGER_OUT=/tmp/pledger-sub5 python3 tools/port_ledger.py map-check tools/port_map/game-002.tsv: 146 rows, no problems.

Proven: data file only; each claim is from reading the function named in the row.

Not proven: no in-game check; ledger verdicts, not behaviour changes.


🔄 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/7106 **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-002-2` --- ### 📝 Commits (1) - [`36744cd`](https://github.com/horizon-rust/horizon/commit/36744cd76c18e263a2f9879100e099aedae1d6cb) port map: clear game-002 rows main already implements ### 📊 Changes **1 file changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-002.tsv` (+14 -14) </details> ### 📄 Description `tools/port_map/game-002.tsv` had two rows saying `missing` for behaviour `main` has, and twelve notes describing gaps that have since closed. Rows flipped to `inline`: - `ServerPlayer.saveEnderPearls` -> `game/persist.rs::Game::entity_chunks`: a thrown pearl is written with its chunk as an ordinary entity (`entity_nbt::throwable_to_nbt`) rather than into the player file. What is left: a pearl in a chunk that never saves, a stasis chamber's, is not kept. - `ServerPlayer.loadAndSpawnEnderPearl` -> `game/persist.rs::Game::spawn_loaded_entities`: `entity_nbt::throwable_from_nbt` spawns a saved pearl back, in the chunk's own level, so there is no per-player list to read. Notes corrected where the gap has closed (the verdicts were already right): - `ServerPlayer.triggerDimensionChangeTriggers`: the note said `nether_travel` was never triggered, so Subspace Bubble could not be earned. It fires on the way back to the Overworld from the position the Nether was entered at (`adv.marks.nether`, set in `trigger_dimension`). What is left: that position is not restored from `entered_nether_pos` after a reload. - `ServerPlayer.onEffectUpdated` / `onEffectsRemoved`: the notes said the `effects_changed` trigger did not exist. It does (`advancements.rs::Game::trigger_effects_changed`, from the end-of-tick comparison of the effect list). What is left: that comparison reads the host player's list, while `Hub::sync_effects` only sends a guest its effects. - `ServerLevel.EntityCallbacks.onDestroyed`: a dead non-player entity also runs `Scoreboard.entityRemoved` (`game/scoreboard.rs::score_entity_removed`): its scores are reset and it leaves its team. - `ServerPlayer.storeGameTypes`: `previousPlayerGameType` is saved after all (`Level::player_tag`, absent when unset as `storeNullable` is) and read back into `previous_game_mode`. - `ServerPlayer.getKnownSpeed`: a rider's speed is its root vehicle's (`mob_speed` walks up the mounts); a guest's is the movement it last reported. - `ServerPlayer.readAdditionalSaveData` / `addAdditionalSaveData`: `post_effects` and `previousPlayerGameType` are read and written now, so they leave the list of keys that only survive verbatim in `player_extra` (`entered_nether_pos`, `last_explosion_impact_pos`, `spawn_extra_particles_on_fall`). - `ServerPlayer.addPostEffect` / `clearPostEffects` / `removePostEffect`: the lists are per target (`change_post_effects`), a guest's lives on its record and is sent when it changes (`Hub::send_post_effects`), and the client builds its post chain from the player's — not one shared list and no shader. - `ServerPlayer.registerAndUpdateEnderPearlTicket` stays `missing`, but its note no longer says pearls are never saved: they are saved with a chunk that saves, they just hold no chunk of their own (`ENDER_PEARL` ticket). Left alone as genuinely absent: `ServerLevel.getEntityInAnyDimension` (owner and target references still resolve in the level in place, parked levels are not searched) and `registerAndUpdateEnderPearlTicket`. The other `gap:` notes in the file still hold — the `within_border` stub in the interact path, the distance-based `broadcast_near` sends, the mob target check that reads the one player a mob sees, the path not recomputed on a block update, and the broken-armour statistic. `PORT_LEDGER_OUT=/tmp/pledger-sub5 python3 tools/port_ledger.py map-check tools/port_map/game-002.tsv`: `146 rows, no problems.` **Proven:** data file only; each claim is from reading the function named in the row. **Not proven:** no in-game check; ledger verdicts, not behaviour changes. --- <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:02 +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#7343
No description provided.