[PR #6974] [MERGED] Clear stale game2-006.tsv rows main already implements #7243

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game2-006-rows


📝 Commits (3)

  • c9497b0 Clear stale game2-006 ledger rows the tree already implements
  • c1efc3a Merge remote-tracking branch 'upstream/main' into HEAD
  • c18178c Merge main into #6974

📊 Changes

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

View changed files

📝 tools/port_map/game2-006.tsv (+7 -7)

📄 Description

Seven rows of tools/port_map/game2-006.tsv said missing for behaviour that is in the tree and called from the save, load and explosion paths.

Rows and their citations:

  • FireworkRocketEntity.addAdditionalSaveData → crates/horizon-client/src/entity_nbt.rs::firework_rocket_to_nbt (port: Life, LifeTime, FireworksItem, ShotAtAngle, HasBeenShot, then Projectile's Owner and LeftOwner)
  • FireworkRocketEntity.readAdditionalSaveData → crates/horizon-client/src/entity_nbt.rs::firework_rocket_from_nbt (port; loaded by game/persist.rs:505)
  • Projectile.addAdditionalSaveData → crates/horizon-client/src/entity_nbt.rs::put_projectile (port: Owner and LeftOwner only when set, HasBeenShot once the projectile has ticked)
  • Projectile.readAdditionalSaveData → crates/horizon-client/src/entity_nbt.rs::throwable_from_nbt (inline: there is no shared reader, each kind's own reader takes Owner, LeftOwner and NoGravity; HasBeenShot is read for arrows only and no projectile keeps a can_break predicate, so the note now says which half is missing)
  • WitherSkull.getBlockExplosionResistance → crates/horizon-client/src/game/explosion.rs::blast_resistance (port: a dangerous skull's blast caps a breakable block's resistance at 0.8, #wither_immune blocks keep theirs)
  • ContainerEntity.unpackChestVehicleLootTable → crates/horizon-client/src/game/minecarts.rs::Game::unpack_cart_loot (port: opening a chest minecart rolls the loot table it still holds and fires player_generates_container_loot)
  • VehicleEntity.ignoreExplosion → crates/horizon-client/src/game/entity.rs::Entity::ignores_explosion (port: boats and minecarts sit out a mob's blast with mob griefing off, and the breeze's burst, neither hurt nor pushed)

Still missing after checking, left alone: Projectile.applyImplicitComponent, Projectile.restoreFrom, Projectile.canBreakBlockInAdventureMode (a projectile keeps no can_break predicate), ShulkerBullet.addAdditionalSaveData and .readAdditionalSaveData (shulker bullets are not among the saved projectile kinds), ShulkerBullet.canHitEntity, AbstractHurtingProjectile.canHitEntity and AbstractWindCharge.canHitEntity (the hit search skips the owner only: crates/horizon-client/src/projectiles.rs:878), ThrowableProjectile.handleFirstTickBubbleColumn (only the ender pearl's bubble columns are handled), AbstractArrow.getSlot (no entity slot access), ThrownEnderpearl.isAllowedToTeleportOwner and .canTeleport (the pearl teleports its owner with no alive or sleeping test and no cross-dimension credits).

Checked on the build VM, this file only:

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

Proven: every citation resolves in the ledger and the whole file passes map-check; the readers and writers are called from game/persist.rs and entity_nbt.rs, the blast resistance from the explosion walk, the chest cart loot from interact_cart, and the vehicle rule from Blast::vehicles_ignore set in game/explosion.rs and game/wind.rs.

Not proven: nothing here was watched in a running game, and the twelve rows left missing rest on reading the tree rather than on play.


🔄 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/6974 **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-006-rows` --- ### 📝 Commits (3) - [`c9497b0`](https://github.com/horizon-rust/horizon/commit/c9497b0ceea7fd27d451ead942b486ee5facfa26) Clear stale game2-006 ledger rows the tree already implements - [`c1efc3a`](https://github.com/horizon-rust/horizon/commit/c1efc3abe42a5fbfd3d5b3f8ec4cca70af6f86ac) Merge remote-tracking branch 'upstream/main' into HEAD - [`c18178c`](https://github.com/horizon-rust/horizon/commit/c18178c42087186ac14c30c8c24e5c67d7542dc7) Merge main into #6974 ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-006.tsv` (+7 -7) </details> ### 📄 Description Seven rows of `tools/port_map/game2-006.tsv` said `missing` for behaviour that is in the tree and called from the save, load and explosion paths. Rows and their citations: - `FireworkRocketEntity.addAdditionalSaveData` → `crates/horizon-client/src/entity_nbt.rs::firework_rocket_to_nbt` (`port`: Life, LifeTime, FireworksItem, ShotAtAngle, HasBeenShot, then `Projectile`'s Owner and LeftOwner) - `FireworkRocketEntity.readAdditionalSaveData` → `crates/horizon-client/src/entity_nbt.rs::firework_rocket_from_nbt` (`port`; loaded by `game/persist.rs:505`) - `Projectile.addAdditionalSaveData` → `crates/horizon-client/src/entity_nbt.rs::put_projectile` (`port`: Owner and LeftOwner only when set, HasBeenShot once the projectile has ticked) - `Projectile.readAdditionalSaveData` → `crates/horizon-client/src/entity_nbt.rs::throwable_from_nbt` (`inline`: there is no shared reader, each kind's own reader takes Owner, LeftOwner and NoGravity; HasBeenShot is read for arrows only and no projectile keeps a `can_break` predicate, so the note now says which half is missing) - `WitherSkull.getBlockExplosionResistance` → `crates/horizon-client/src/game/explosion.rs::blast_resistance` (`port`: a dangerous skull's blast caps a breakable block's resistance at 0.8, `#wither_immune` blocks keep theirs) - `ContainerEntity.unpackChestVehicleLootTable` → `crates/horizon-client/src/game/minecarts.rs::Game::unpack_cart_loot` (`port`: opening a chest minecart rolls the loot table it still holds and fires `player_generates_container_loot`) - `VehicleEntity.ignoreExplosion` → `crates/horizon-client/src/game/entity.rs::Entity::ignores_explosion` (`port`: boats and minecarts sit out a mob's blast with mob griefing off, and the breeze's burst, neither hurt nor pushed) Still missing after checking, left alone: `Projectile.applyImplicitComponent`, `Projectile.restoreFrom`, `Projectile.canBreakBlockInAdventureMode` (a projectile keeps no `can_break` predicate), `ShulkerBullet.addAdditionalSaveData` and `.readAdditionalSaveData` (shulker bullets are not among the saved projectile kinds), `ShulkerBullet.canHitEntity`, `AbstractHurtingProjectile.canHitEntity` and `AbstractWindCharge.canHitEntity` (the hit search skips the owner only: `crates/horizon-client/src/projectiles.rs:878`), `ThrowableProjectile.handleFirstTickBubbleColumn` (only the ender pearl's bubble columns are handled), `AbstractArrow.getSlot` (no entity slot access), `ThrownEnderpearl.isAllowedToTeleportOwner` and `.canTeleport` (the pearl teleports its owner with no alive or sleeping test and no cross-dimension credits). Checked on the build VM, this file only: ``` 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-006.tsv 140 rows, no problems. ``` **Proven:** every citation resolves in the ledger and the whole file passes `map-check`; the readers and writers are called from `game/persist.rs` and `entity_nbt.rs`, the blast resistance from the explosion walk, the chest cart loot from `interact_cart`, and the vehicle rule from `Blast::vehicles_ignore` set in `game/explosion.rs` and `game/wind.rs`. **Not proven:** nothing here was watched in a running game, and the twelve rows left `missing` rest on reading the tree rather than on play. --- <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:17 +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#7243
No description provided.