[PR #7138] [MERGED] Clear stale client2-007.tsv rows main already implements #7369

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client2-007


📝 Commits (1)

  • 37b4824 port_map: clear stale client2-007 rows

📊 Changes

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

View changed files

📝 tools/port_map/client2-007.tsv (+10 -10)

📄 Description

Rows in tools/port_map/client2-007.tsv that claimed behaviour main already has: potent sulfur and its noxious gas are ported now (crates/horizon-client-render/src/particles.rs, potent_sulfur.rs), as are the spyglass particle hiding, the spore blossom particle cap and the nine-slice metadata check. Two older gap notes that the code closes are dropped, and one citation that names no function is repointed.

row what changed verdict citation
NoxiousGasCloudParticle.tick missing → port port crates/horizon-client-render/src/particles.rs::ParticleEngine::tick_particle
NoxiousGasCloudParticle.pickRandomParticleSpawnPoint missing → port port crates/horizon-client-render/src/particles.rs::pick_random_particle_spawn_point
NoxiousGasCloudParticle.spawnNoxiousGasParticle missing → port port crates/horizon-client-render/src/particles.rs::ParticleEngine::spawn_noxious_gas_particle
NoxiousGasParticle.tick missing → port port crates/horizon-client-render/src/particles.rs::ParticleEngine::tick_particle
NoxiousGasParticle.Provider.createParticle missing → port port crates/horizon-client-render/src/particles.rs::ParticleEngine::make
SpellParticle.isCloseToScopingPlayer missing → port port crates/horizon-client-render/src/particles.rs::ParticleEngine::close_to_scoping_player
GuiSpriteScaling.NineSlice.validate missing → port port crates/horizon-client-render/src/ui.rs::parse_nine_slice
ParticleEngine.hasSpaceInParticleLimit citation repointed port crates/horizon-client-render/src/particles.rs::ParticleEngine::create
SpellParticle.tick stale gap: note dropped port crates/horizon-client-render/src/particles.rs::ParticleEngine::tick_particle
SuspendedParticle.SporeBlossomAirProvider.createParticle stale gap: note dropped inline crates/horizon-client-render/src/particles.rs::ParticleEngine::make
  • The NoxiousGasCloud arm of tick_particle spawns a gas particle every second tick at a point from pick_random_particle_spawn_point, when potent_sulfur::can_be_reached_by_noxious_gas accepts it; the gas is added always visible, as ClientLevel.addAlwaysVisibleParticle does.
  • The NoxiousGas arm ticks the sprite by age and fades the alpha out from the fade start; the make arm gives the particle vanilla's white colour and the 6 / (0.5 to 1) * 3 tick lifetime.
  • close_to_scoping_player is three blocks from the local player's eye while it scopes in first person: the spell arms set alpha 0 there and otherwise ease it back to the original alpha at 0.05, which is what javap shows SpellParticle.tick and SpellParticle.Provider.createParticle doing.
  • parse_nine_slice drops the metadata when the borders meet and leave no centre slice, the check NineSlice.validate makes.
  • ParticleEngine.create drops a spore blossom air particle past SPORE_BLOSSOM_LIMIT (1000), so the old notes on the spyglass check and on the missing cap are gone.

Validation, both jars so the client classes are indexed:

python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/client2-007.tsv
149 rows, no problems.

Proven: every row above against the tree, and the tick and provider bytecode with javap -p -c -constants on NoxiousGasCloudParticle, NoxiousGasParticle and SpellParticle (isCloseToScopingPlayer, the alpha lerp of 0.05 toward originalAlpha).

Not proven: the ParticleEngine.hasSpaceInParticleLimit repoint only moves the citation off a prose form onto the function that applies the cap; nothing else in the file was touched.


🔄 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/7138 **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-client2-007` --- ### 📝 Commits (1) - [`37b4824`](https://github.com/horizon-rust/horizon/commit/37b48246bbaff6f71d0f1ba96b3166568ed526fa) port_map: clear stale client2-007 rows ### 📊 Changes **1 file changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-007.tsv` (+10 -10) </details> ### 📄 Description Rows in `tools/port_map/client2-007.tsv` that claimed behaviour `main` already has: potent sulfur and its noxious gas are ported now (`crates/horizon-client-render/src/particles.rs`, `potent_sulfur.rs`), as are the spyglass particle hiding, the spore blossom particle cap and the nine-slice metadata check. Two older gap notes that the code closes are dropped, and one citation that names no function is repointed. | row | what changed | verdict | citation | | --- | --- | --- | --- | | `NoxiousGasCloudParticle.tick` | `missing` → `port` | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::tick_particle` | | `NoxiousGasCloudParticle.pickRandomParticleSpawnPoint` | `missing` → `port` | `port` | `crates/horizon-client-render/src/particles.rs::pick_random_particle_spawn_point` | | `NoxiousGasCloudParticle.spawnNoxiousGasParticle` | `missing` → `port` | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::spawn_noxious_gas_particle` | | `NoxiousGasParticle.tick` | `missing` → `port` | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::tick_particle` | | `NoxiousGasParticle.Provider.createParticle` | `missing` → `port` | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::make` | | `SpellParticle.isCloseToScopingPlayer` | `missing` → `port` | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::close_to_scoping_player` | | `GuiSpriteScaling.NineSlice.validate` | `missing` → `port` | `port` | `crates/horizon-client-render/src/ui.rs::parse_nine_slice` | | `ParticleEngine.hasSpaceInParticleLimit` | citation repointed | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::create` | | `SpellParticle.tick` | stale `gap:` note dropped | `port` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::tick_particle` | | `SuspendedParticle.SporeBlossomAirProvider.createParticle` | stale `gap:` note dropped | `inline` | `crates/horizon-client-render/src/particles.rs::ParticleEngine::make` | - The `NoxiousGasCloud` arm of `tick_particle` spawns a gas particle every second tick at a point from `pick_random_particle_spawn_point`, when `potent_sulfur::can_be_reached_by_noxious_gas` accepts it; the gas is added always visible, as `ClientLevel.addAlwaysVisibleParticle` does. - The `NoxiousGas` arm ticks the sprite by age and fades the alpha out from the fade start; the `make` arm gives the particle vanilla's white colour and the `6 / (0.5 to 1) * 3` tick lifetime. - `close_to_scoping_player` is three blocks from the local player's eye while it scopes in first person: the spell arms set alpha 0 there and otherwise ease it back to the original alpha at 0.05, which is what `javap` shows `SpellParticle.tick` and `SpellParticle.Provider.createParticle` doing. - `parse_nine_slice` drops the metadata when the borders meet and leave no centre slice, the check `NineSlice.validate` makes. - `ParticleEngine.create` drops a spore blossom air particle past `SPORE_BLOSSOM_LIMIT` (1000), so the old notes on the spyglass check and on the missing cap are gone. Validation, both jars so the client classes are indexed: ``` python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/client2-007.tsv 149 rows, no problems. ``` **Proven:** every row above against the tree, and the tick and provider bytecode with `javap -p -c -constants` on `NoxiousGasCloudParticle`, `NoxiousGasParticle` and `SpellParticle` (`isCloseToScopingPlayer`, the alpha lerp of 0.05 toward `originalAlpha`). **Not proven:** the `ParticleEngine.hasSpaceInParticleLimit` repoint only moves the citation off a prose form onto the function that applies the cap; nothing else in the file was touched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:28 +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#7369
No description provided.