[PR #1116] [MERGED] End crystals spin and bob in every dimension #3063

Closed
opened 2026-11-02 16:01:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1116
Author: @ludovic111
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: fix/end-crystal-spin


📝 Commits (1)

  • 621b791 End crystals spin and bob in every dimension

📊 Changes

2 files changed (+7 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+6 -4)
📝 crates/horizon-client/src/game/end.rs (+1 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #1051. Reported by @Visivel: end crystals don't rotate.

What and why

Vanilla EndCrystal.tick increments time every tick in every dimension (the renderer's spin and bob come from it); only the fire placement is limited to a level with an EndDragonFight. Horizon advanced crystal time from the dragon fight's tick only, so crystals placed anywhere else (or in an End without an active fight) stood still.

  • tick_crystals now always advances time, and places fire only in the End; it runs from tick_end every tick instead of from tick_fight.

Screenshots (5 ticks apart)

main (a) main (b) this PR (a) this PR (b)

Crystal region (200x220 px) pixels that change between the two frames: main 3123 (the animated water behind it), this PR 21507 (the cubes turn and bob).

Self-check (all five B2 branches merged onto one integration commit, Mac mini)

  • On the branches rebased onto origin/main 252f877f:
  • cargo fmt --all -- --check: clean
  • set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings: exit 0
  • cargo test -p horizon-assets -p horizon-client: all pass (960 + 84 + smaller suites, 0 failed)
  • tools/parity.py --changed origin/main (integration over e66c35b2): 238 of 268 harnesses PASS, including block_particles, particle_providers, emitter_particles, entity_particles, item_particles, marker_particles, entity_model, item_model, environment_render, section_mesh, translucency, block_entity_render, cloud_render, weather_render, world_border_render, sprite_animation, living_fluid. 1 FAIL: dedicated_server, which also fails on plain origin/main (--fresh, same machine; its server-timing lines differ from run to run under load). 29 non-rendering harnesses (server, sound, UI screens) were not reached locally before the run's time limit; CI runs them.
  • Screenshot comparison: main vs this branch from the same world, camera and commands (--offscreen + horizon-ctl screenshot), below.

Needs Ludovic: nothing.

🤖 Generated with Claude Code


🔄 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/1116 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/end-crystal-spin` --- ### 📝 Commits (1) - [`621b791`](https://github.com/horizon-rust/horizon/commit/621b791a33224155253f0470774715022e9f683f) End crystals spin and bob in every dimension ### 📊 Changes **2 files changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+6 -4) 📝 `crates/horizon-client/src/game/end.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #1051. Reported by @Visivel: end crystals don't rotate. ## What and why Vanilla `EndCrystal.tick` increments `time` every tick in every dimension (the renderer's spin and bob come from it); only the fire placement is limited to a level with an `EndDragonFight`. Horizon advanced crystal time from the dragon fight's tick only, so crystals placed anywhere else (or in an End without an active fight) stood still. - `tick_crystals` now always advances `time`, and places fire only in the End; it runs from `tick_end` every tick instead of from `tick_fight`. ## Screenshots (5 ticks apart) | main (a) | main (b) | this PR (a) | this PR (b) | |---|---|---|---| | ![](https://raw.githubusercontent.com/ludovic111/horizon/b01dd34ad5343951d09ae41f01d7495b8db904b9/b2/1051-main-a.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/b01dd34ad5343951d09ae41f01d7495b8db904b9/b2/1051-main-b.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/b01dd34ad5343951d09ae41f01d7495b8db904b9/b2/1051-fix-a.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/b01dd34ad5343951d09ae41f01d7495b8db904b9/b2/1051-fix-b.png) | Crystal region (200x220 px) pixels that change between the two frames: main 3123 (the animated water behind it), this PR 21507 (the cubes turn and bob). ## Self-check (all five B2 branches merged onto one integration commit, Mac mini) - On the branches rebased onto origin/main 252f877f: - `cargo fmt --all -- --check`: clean - `set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings`: exit 0 - `cargo test -p horizon-assets -p horizon-client`: all pass (960 + 84 + smaller suites, 0 failed) - `tools/parity.py --changed origin/main` (integration over e66c35b2): 238 of 268 harnesses PASS, including block_particles, particle_providers, emitter_particles, entity_particles, item_particles, marker_particles, entity_model, item_model, environment_render, section_mesh, translucency, block_entity_render, cloud_render, weather_render, world_border_render, sprite_animation, living_fluid. 1 FAIL: dedicated_server, which also fails on plain origin/main (`--fresh`, same machine; its server-timing lines differ from run to run under load). 29 non-rendering harnesses (server, sound, UI screens) were not reached locally before the run's time limit; CI runs them. - Screenshot comparison: main vs this branch from the same world, camera and commands (`--offscreen` + `horizon-ctl screenshot`), below. Needs Ludovic: nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:01:12 +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#3063
No description provided.