[PR #6962] [MERGED] Clear stale game-003.tsv rows main already implements #7233

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

📋 Pull Request Information

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

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


📝 Commits (3)

  • 859c00e Clear stale game-003.tsv rows main already implements
  • 79f11db Merge remote-tracking branch 'upstream/main' into HEAD
  • e4d7687 Merge main into #6962

📊 Changes

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

View changed files

📝 tools/port_map/game-003.tsv (+4 -4)

📄 Description

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

row verdict where
ServerPlayerGameMode.isInRangeOfGround port crates/horizon-world/src/world_movement.rs::in_range_of_ground
Ticket.decreaseTicksLeft inline crates/horizon-client/src/game/end.rs::Game::keep_gateway_destinations
Ticket.isTimedOut inline crates/horizon-client/src/game/end.rs::Game::keep_gateway_destinations
LockCode.canUnlock port crates/horizon-client/src/advancements.rs::can_unlock

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

Proven:

  • isInRangeOfGround — javap (ServerPlayerGameMode.isInRangeOfGround): Entity.collectAllColliders(...).isEmpty() && getAvailableSpaceBelow(1.0) < 1. world_movement::in_range_of_ground tests the same two things, and Game::set_mode (game/game_mode.rs:96) and the LAN host (lan/hub.rs:3471) stop flying on it.
  • canUnlock — javap: player.isSpectator() || unlocksWith(player.getMainHandItem()). advancements::can_unlock is that predicate (a spectator, else the main hand against the lock's item predicate) and it runs when a container opens (game/advancements.rs::container_locked_for, called from lan_actions.rs:1259).
  • decreaseTicksLeft / isTimedOut — javap: the count only decreases when TicketType.hasTimeout(), and the ticket is timed out below 0. end.rs keeps the End portal tickets placePortalTicket makes (PORTAL_TICKET = 300), and keep_gateway_destinations subtracts one a tick and drops the ticket at 0.

Not proven:

  • ServerPlayerGameMode.destroyAndAck stays missing: javap shows it sending a ClientboundBlockUpdatePacket with the current state back to the player when destroyBlock returns false, and the LAN guest_destroy still discards the result of break_block and sends nothing.
  • The two Ticket rows cover the portal ticket only: the ender pearl 40 and post-teleport 5 tickets are not modelled, and the drop happens at 0 where vanilla waits for a negative count.

🔄 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/6962 **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-003` --- ### 📝 Commits (3) - [`859c00e`](https://github.com/horizon-rust/horizon/commit/859c00e1ba206cb14f8e9dde4ebd90dfa723811f) Clear stale game-003.tsv rows main already implements - [`79f11db`](https://github.com/horizon-rust/horizon/commit/79f11dbf56219b5a45dec2b855ce0ce83c06a1e9) Merge remote-tracking branch 'upstream/main' into HEAD - [`e4d7687`](https://github.com/horizon-rust/horizon/commit/e4d76873f8ea54643e1a61f3e66bbe02aad1a0ce) Merge main into #6962 ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-003.tsv` (+4 -4) </details> ### 📄 Description Four rows in `tools/port_map/game-003.tsv` said `missing` while main already implements them. | row | verdict | where | | --- | --- | --- | | `ServerPlayerGameMode.isInRangeOfGround` | port | `crates/horizon-world/src/world_movement.rs::in_range_of_ground` | | `Ticket.decreaseTicksLeft` | inline | `crates/horizon-client/src/game/end.rs::Game::keep_gateway_destinations` | | `Ticket.isTimedOut` | inline | `crates/horizon-client/src/game/end.rs::Game::keep_gateway_destinations` | | `LockCode.canUnlock` | port | `crates/horizon-client/src/advancements.rs::can_unlock` | `python3 tools/port_ledger.py map-check tools/port_map/game-003.tsv` → `146 rows, no problems.` **Proven:** - `isInRangeOfGround` — javap (`ServerPlayerGameMode.isInRangeOfGround`): `Entity.collectAllColliders(...).isEmpty() && getAvailableSpaceBelow(1.0) < 1`. `world_movement::in_range_of_ground` tests the same two things, and `Game::set_mode` (`game/game_mode.rs:96`) and the LAN host (`lan/hub.rs:3471`) stop flying on it. - `canUnlock` — javap: `player.isSpectator() || unlocksWith(player.getMainHandItem())`. `advancements::can_unlock` is that predicate (a spectator, else the main hand against the lock's item predicate) and it runs when a container opens (`game/advancements.rs::container_locked_for`, called from `lan_actions.rs:1259`). - `decreaseTicksLeft` / `isTimedOut` — javap: the count only decreases when `TicketType.hasTimeout()`, and the ticket is timed out below 0. `end.rs` keeps the End portal tickets `placePortalTicket` makes (`PORTAL_TICKET = 300`), and `keep_gateway_destinations` subtracts one a tick and drops the ticket at 0. **Not proven:** - `ServerPlayerGameMode.destroyAndAck` stays `missing`: javap shows it sending a `ClientboundBlockUpdatePacket` with the current state back to the player when `destroyBlock` returns false, and the LAN `guest_destroy` still discards the result of `break_block` and sends nothing. - The two `Ticket` rows cover the portal ticket only: the ender pearl 40 and post-teleport 5 tickets are not modelled, and the drop happens at 0 where vanilla waits for a negative count. --- <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:04 +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#7233
No description provided.