[PR #6856] [MERGED] Clear eight rest-018 rows: the server packet listener's handlers exist #7148

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-rest-018


📝 Commits (1)

  • 17a6c95 Clear eight rest-018 rows: the server packet listener's handlers exist

📊 Changes

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

View changed files

📝 tools/port_map/rest-018.tsv (+8 -8)

📄 Description

Eight tools/port_map/rest-018.tsv rows said missing for ServerGamePacketListenerImpl behaviour
current main has. Each was read in the code, and the row now names where it lives:

  • getMaximumFlyingTicks -> lan/hub.rs::maximum_flying_ticks: 80 ticks scaled by
    max(0.08/gravity, 1), i32::MAX below a gravity of 1e-5, and tick_floating kicks a guest
    past that count with multiplayer.disconnect.flying.
  • noBlocksAround -> lan/hub.rs::Hub::no_blocks_around: the player's box grown by 0.0625 and
    stretched 0.55 down is all air, and a chunk not loaded yet never counts as air.
  • handleSetCommandMinecart -> game/command_minecarts.rs::Game::lan_set_command_minecart.
  • handleSetStructureBlock -> game/structure_blocks.rs::Game::lan_set_structure_block.
  • handleTestInstanceBlockAction -> game/test_instances.rs::Game::lan_test_instance_action.
  • wasBlockPlacementAttempt -> game/lan_actions.rs::Game::was_block_placement_attempt: a block
    item, or a bucket with something in it, that is not cooling down.
  • detectRateSpam -> game/lan_chat.rs::Game::detect_rate_spam: 20 per chat message or command
    against the chat and command thresholds, and a guest over one that is not an operator is kicked
    with disconnect.spam.
  • handleSpectatorAction -> game/lan_camera.rs::Game::guest_spectator_action: the spectator's
    camera target comes from SPECTATOR_ACTION.

The four serverbound handlers are dispatched from game/lan_actions.rs::Game::process_packet.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-018.tsv on the build VM -
147 rows, no problems. Each claim is from reading the function named in the row.

Not proven: no in-game check; these are 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/6856 **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-rest-018` --- ### 📝 Commits (1) - [`17a6c95`](https://github.com/horizon-rust/horizon/commit/17a6c9527d8fd8641a0243655e7885e920005350) Clear eight rest-018 rows: the server packet listener's handlers exist ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-018.tsv` (+8 -8) </details> ### 📄 Description Eight `tools/port_map/rest-018.tsv` rows said `missing` for `ServerGamePacketListenerImpl` behaviour current `main` has. Each was read in the code, and the row now names where it lives: - `getMaximumFlyingTicks` -> `lan/hub.rs::maximum_flying_ticks`: 80 ticks scaled by `max(0.08/gravity, 1)`, `i32::MAX` below a gravity of 1e-5, and `tick_floating` kicks a guest past that count with `multiplayer.disconnect.flying`. - `noBlocksAround` -> `lan/hub.rs::Hub::no_blocks_around`: the player's box grown by 0.0625 and stretched 0.55 down is all air, and a chunk not loaded yet never counts as air. - `handleSetCommandMinecart` -> `game/command_minecarts.rs::Game::lan_set_command_minecart`. - `handleSetStructureBlock` -> `game/structure_blocks.rs::Game::lan_set_structure_block`. - `handleTestInstanceBlockAction` -> `game/test_instances.rs::Game::lan_test_instance_action`. - `wasBlockPlacementAttempt` -> `game/lan_actions.rs::Game::was_block_placement_attempt`: a block item, or a bucket with something in it, that is not cooling down. - `detectRateSpam` -> `game/lan_chat.rs::Game::detect_rate_spam`: 20 per chat message or command against the chat and command thresholds, and a guest over one that is not an operator is kicked with `disconnect.spam`. - `handleSpectatorAction` -> `game/lan_camera.rs::Game::guest_spectator_action`: the spectator's camera target comes from `SPECTATOR_ACTION`. The four serverbound handlers are dispatched from `game/lan_actions.rs::Game::process_packet`. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-018.tsv` on the build VM - `147 rows, no problems.` Each claim is from reading the function named in the row. **Not proven:** no in-game check; these are 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:34:48 +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#7148
No description provided.