[PR #7038] [MERGED] Clear stale game-005.tsv rows main already implements #7288

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 0de28c2 Clear stale game-005.tsv rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game-005.tsv (+5 -5)

📄 Description

Three rows in tools/port_map/game-005.tsv said missing while main already implements them, one more needed a corrected note, and one citation named a function that does not exist.

row verdict where
EntityAttachments.scale inline crates/horizon-client/src/mobs/riders.rs::passenger_attachment
EntityType.appendCustomEntityStackConfig port crates/horizon-client/src/game/creatures.rs::Game::apply_spawn_egg_entity_data
ExperienceOrb.unstuckIfPossible port crates/horizon-client/src/entities.rs::ExperienceOrb::unstuck
Entity.getAvailableSpaceBelow (citation only) inline crates/horizon-world/src/world_movement.rs::in_range_of_ground

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

Proven:

  • EntityAttachments.scale — passenger_attachment multiplies the vehicle's base attachment point by the mob's scale (LivingEntity.getScale off model_scale, mobs/riders.rs::scale) and vehicle_attachment scales the rider's own ridingOffset; the module doc names EntityAttachments, and a baby hoglin and the avatars carry their own attachment points.
  • EntityType.appendCustomEntityStackConfig — javap: it composes a PostSpawnProcessor that hands the stack's ENTITY_DATA to updateCustomEntityTag. Game::apply_spawn_egg_entity_data merges that data over the spawned mob's own compound through the same loader (game/creatures.rs from use_spawn_egg, game/dispenser.rs), behind EntityType.updateCustomEntityTag's id and op guards.
  • ExperienceOrb.unstuckIfPossible — ExperienceOrb::unstuck moves an orb whose spawn box collides to the nearest free position (level::portal_travel::find_free_position over the border) and the orb spawn path runs it, as ExperienceOrb's constructor does.
  • Entity.getAvailableSpaceBelow cited world_movement.rs::entity_collisions, which does not exist. The behaviour is folded into in_range_of_ground: the colliders under the box down to one block are collected and the body must have under a block of space (world_movement.rs:154).

Not proven:

  • Entity.isColliding stays missing: nothing snaps a player back to the prediction when a refused block change comes back inside its box; the guest path only restores the block.
  • Entity.computeSpeed stays missing, note corrected: there is no lastKnownSpeed and no port of getKnownSpeed. FollowPlayerRiddenEntityGoal does exist now (mobs/dolphin.rs), but it reads the vehicle's velocity, so the old note's "Horizon has no such goal" was wrong.
  • Entity.isInClouds stays missing: no cloud height anywhere, so a happy ghast above the cloud layer still gets no rain-style healing.
  • Entity.touchingUnloadedChunk stays missing: nothing tests the loaded area in fall damage or spectator ticks.
  • javap was run from the 26.3 server jar for appendCustomEntityStackConfig; EntityAttachments.scale and ExperienceOrb.unstuckIfPossible are proven from the tree (their docs name the method and the call sites run them), not from bytecode.

🔄 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/7038 **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-005` --- ### 📝 Commits (1) - [`0de28c2`](https://github.com/horizon-rust/horizon/commit/0de28c24a35d522c25f7456d2781041492505ac7) Clear stale game-005.tsv rows main already implements ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-005.tsv` (+5 -5) </details> ### 📄 Description Three rows in `tools/port_map/game-005.tsv` said `missing` while main already implements them, one more needed a corrected note, and one citation named a function that does not exist. | row | verdict | where | | --- | --- | --- | | `EntityAttachments.scale` | inline | `crates/horizon-client/src/mobs/riders.rs::passenger_attachment` | | `EntityType.appendCustomEntityStackConfig` | port | `crates/horizon-client/src/game/creatures.rs::Game::apply_spawn_egg_entity_data` | | `ExperienceOrb.unstuckIfPossible` | port | `crates/horizon-client/src/entities.rs::ExperienceOrb::unstuck` | | `Entity.getAvailableSpaceBelow` (citation only) | inline | `crates/horizon-world/src/world_movement.rs::in_range_of_ground` | `python3 tools/port_ledger.py map-check tools/port_map/game-005.tsv` → `143 rows, no problems.` **Proven:** - `EntityAttachments.scale` — `passenger_attachment` multiplies the vehicle's base attachment point by the mob's scale (`LivingEntity.getScale` off `model_scale`, `mobs/riders.rs::scale`) and `vehicle_attachment` scales the rider's own `ridingOffset`; the module doc names `EntityAttachments`, and a baby hoglin and the avatars carry their own attachment points. - `EntityType.appendCustomEntityStackConfig` — javap: it composes a `PostSpawnProcessor` that hands the stack's `ENTITY_DATA` to `updateCustomEntityTag`. `Game::apply_spawn_egg_entity_data` merges that data over the spawned mob's own compound through the same loader (`game/creatures.rs` from `use_spawn_egg`, `game/dispenser.rs`), behind `EntityType.updateCustomEntityTag`'s id and op guards. - `ExperienceOrb.unstuckIfPossible` — `ExperienceOrb::unstuck` moves an orb whose spawn box collides to the nearest free position (`level::portal_travel::find_free_position` over the border) and the orb spawn path runs it, as `ExperienceOrb`'s constructor does. - `Entity.getAvailableSpaceBelow` cited `world_movement.rs::entity_collisions`, which does not exist. The behaviour is folded into `in_range_of_ground`: the colliders under the box down to one block are collected and the body must have under a block of space (`world_movement.rs:154`). **Not proven:** - `Entity.isColliding` stays `missing`: nothing snaps a player back to the prediction when a refused block change comes back inside its box; the guest path only restores the block. - `Entity.computeSpeed` stays `missing`, note corrected: there is no `lastKnownSpeed` and no port of `getKnownSpeed`. `FollowPlayerRiddenEntityGoal` does exist now (`mobs/dolphin.rs`), but it reads the vehicle's velocity, so the old note's "Horizon has no such goal" was wrong. - `Entity.isInClouds` stays `missing`: no cloud height anywhere, so a happy ghast above the cloud layer still gets no rain-style healing. - `Entity.touchingUnloadedChunk` stays `missing`: nothing tests the loaded area in fall damage or spectator ticks. - javap was run from the 26.3 server jar for `appendCustomEntityStackConfig`; `EntityAttachments.scale` and `ExperienceOrb.unstuckIfPossible` are proven from the tree (their docs name the method and the call sites run them), not from bytecode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:37:11 +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#7288
No description provided.