[PR #6940] [MERGED] Clear stale classes-03.tsv rows main already implements #7212

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-classes-03


📝 Commits (1)

  • d0bdada port_map: clear five stale classes-03 rows

📊 Changes

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

View changed files

📝 tools/port_map/classes-03.tsv (+5 -5)

📄 Description

Five missing rows in tools/port_map/classes-03.tsv name code the tree already has.

row now cites
EntityBasedExplosionDamageCalculator.getBlockExplosionResistance port — crates/horizon-client/src/game/explosion.rs::Game::exploded_positions
TicketStorage.addTicket port — crates/horizon-client/src/ticket_levels.rs::ChunkTickets::add_portal
TicketStorage.addTicketWithRadius inline — crates/horizon-client/src/ticket_levels.rs::ChunkTickets::add_portal
TicketStorage.shouldKeepDimensionActive port — crates/horizon-client/src/game/levels.rs::Game::levels_to_tick
AttachedStemBlock.getCloneItemStack port — crates/horizon-client/src/game/block_items.rs::clone_item

getBlockExplosionResistance — the old note said the source-entity overrides are never read and that explosion_hit_block uses the block's own resistance. exploded_positions does read them: resists overrides one block's resistance (the respawn anchor passes (block, 100.0)), combat.blast_resistance_cap caps a destroyable block at 0.8 for a dangerous wither skull, and combat.rail_proof_blast spares rails and the blocks under them for a TNT minecart. a_dangerous_wither_skull_caps_block_resistance covers the cap.

addTicket / addTicketWithRadius — javap -c on net.minecraft.world.level.TicketStorage shows addTicketWithRadius(type, pos, radius) builds Ticket(type, ChunkLevel.byStatus(FULL) - radius) and hands it to addTicket(long, Ticket), which resets the ticks left when a ticket of the same type and level is already there and adds one otherwise. ChunkTickets::add_portal is that in one function for the only radius add the game makes, Entity.placePortalTicket's PORTAL ticket at radius 3: PORTAL_RADIUS is 3 and PORTAL_LEVEL is FULL - 3 in compute, and the timeout is restarted rather than the ticket duplicated, which is why the radius row is inline into the same function.

shouldKeepDimensionActive — levels_to_tick keeps a dimension in the tick list while portal_ticket_chunks is non-empty, with the comment naming TicketType.shouldKeepDimensionActive, so a portal arrival's level runs with no player in it.

getCloneItemStack — block_items::clone_item answers minecraft:pumpkin_seeds for pumpkin_stem and attached_pumpkin_stem (and the melon pair), since a stem has no block item.

TicketStorage.removeTicketWithRadius is left missing: portal tickets are only dropped by tick_portal's timeout, which is purgeStaleTickets, and no code removes a radius ticket explicitly.

python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/classes-03.tsv → 316 rows, no problems.

Proven: 316 rows, no problems. — every class, method and file::fn the file names resolves against a fresh ledger build of the pinned 26.3 jar, including the five rows changed here.

Not proven: no in-game check. This PR changes verdict rows only; the ticket, explosion and stem code it points at was already shipped and was not exercised in a running client for this PR.


🔄 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/6940 **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-classes-03` --- ### 📝 Commits (1) - [`d0bdada`](https://github.com/horizon-rust/horizon/commit/d0bdadacba8548e341868ab0679b164ce50158fc) port_map: clear five stale classes-03 rows ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-03.tsv` (+5 -5) </details> ### 📄 Description Five `missing` rows in `tools/port_map/classes-03.tsv` name code the tree already has. | row | now cites | | --- | --- | | `EntityBasedExplosionDamageCalculator.getBlockExplosionResistance` | `port` — `crates/horizon-client/src/game/explosion.rs::Game::exploded_positions` | | `TicketStorage.addTicket` | `port` — `crates/horizon-client/src/ticket_levels.rs::ChunkTickets::add_portal` | | `TicketStorage.addTicketWithRadius` | `inline` — `crates/horizon-client/src/ticket_levels.rs::ChunkTickets::add_portal` | | `TicketStorage.shouldKeepDimensionActive` | `port` — `crates/horizon-client/src/game/levels.rs::Game::levels_to_tick` | | `AttachedStemBlock.getCloneItemStack` | `port` — `crates/horizon-client/src/game/block_items.rs::clone_item` | **`getBlockExplosionResistance`** — the old note said the source-entity overrides are never read and that `explosion_hit_block` uses the block's own resistance. `exploded_positions` does read them: `resists` overrides one block's resistance (the respawn anchor passes `(block, 100.0)`), `combat.blast_resistance_cap` caps a destroyable block at 0.8 for a dangerous wither skull, and `combat.rail_proof_blast` spares rails and the blocks under them for a TNT minecart. `a_dangerous_wither_skull_caps_block_resistance` covers the cap. **`addTicket` / `addTicketWithRadius`** — `javap -c` on `net.minecraft.world.level.TicketStorage` shows `addTicketWithRadius(type, pos, radius)` builds `Ticket(type, ChunkLevel.byStatus(FULL) - radius)` and hands it to `addTicket(long, Ticket)`, which resets the ticks left when a ticket of the same type and level is already there and adds one otherwise. `ChunkTickets::add_portal` is that in one function for the only radius add the game makes, `Entity.placePortalTicket`'s `PORTAL` ticket at radius 3: `PORTAL_RADIUS` is 3 and `PORTAL_LEVEL` is `FULL - 3` in `compute`, and the timeout is restarted rather than the ticket duplicated, which is why the radius row is `inline` into the same function. **`shouldKeepDimensionActive`** — `levels_to_tick` keeps a dimension in the tick list while `portal_ticket_chunks` is non-empty, with the comment naming `TicketType.shouldKeepDimensionActive`, so a portal arrival's level runs with no player in it. **`getCloneItemStack`** — `block_items::clone_item` answers `minecraft:pumpkin_seeds` for `pumpkin_stem` and `attached_pumpkin_stem` (and the melon pair), since a stem has no block item. `TicketStorage.removeTicketWithRadius` is left `missing`: portal tickets are only dropped by `tick_portal`'s timeout, which is `purgeStaleTickets`, and no code removes a radius ticket explicitly. `python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/classes-03.tsv` → `316 rows, no problems.` **Proven:** `316 rows, no problems.` — every class, method and `file::fn` the file names resolves against a fresh ledger build of the pinned 26.3 jar, including the five rows changed here. **Not proven:** no in-game check. This PR changes verdict rows only; the ticket, explosion and stem code it points at was already shipped and was not exercised in a running client for this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:49 +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#7212
No description provided.