[PR #2643] [MERGED] Draw the dragon's breath cloud purple on the server thread #4498

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2643
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/2633-dragon-breath-colour


📝 Commits (1)

  • 80fd68e Send the dragon's breath cloud particle to the client

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/lan_entities.rs (+3 -1)
📝 crates/horizon-client/src/game/lan_particles.rs (+1 -1)

📄 Description

What and why

On the server thread (single player), the dragon fireball's breath cloud was drawn with the default white potion swirls instead of purple dragon breath.

The server builds the cloud's DATA_PARTICLE (the dragon breath particle) with network_particle. That reads self.lan, but while a tick's entity states are built the hub is taken out of self.lan, so it always returned None. The cloud was then sent without its particle, and the client falls back to AreaEffectCloud.DEFAULT_PARTICLE, a white entity effect.

The fix builds the particle from the hub that is already passed in (hub_particle, which exists for exactly this case) so the cloud's particle reaches the client.

Fixes #2633.

Vanilla reference

  • DragonFireball.onHit: cloud.setCustomParticle(PowerParticleOption.create(ParticleTypes.DRAGON_BREATH, 1.0F)).
  • AreaEffectCloud.DATA_PARTICLE (entity data index 10) and DEFAULT_PARTICLE.
  • DragonBreathParticle: the colour range is already purple in the client's particle code.

Self-check

cargo check -p horizon-client passes.


🔄 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/2643 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/2633-dragon-breath-colour` --- ### 📝 Commits (1) - [`80fd68e`](https://github.com/horizon-rust/horizon/commit/80fd68e1c23997acc1bd6629d5961710d76bc3ea) Send the dragon's breath cloud particle to the client ### 📊 Changes **2 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_entities.rs` (+3 -1) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+1 -1) </details> ### 📄 Description ## What and why On the server thread (single player), the dragon fireball's breath cloud was drawn with the default white potion swirls instead of purple dragon breath. The server builds the cloud's `DATA_PARTICLE` (the dragon breath particle) with `network_particle`. That reads `self.lan`, but while a tick's entity states are built the hub is taken out of `self.lan`, so it always returned `None`. The cloud was then sent without its particle, and the client falls back to `AreaEffectCloud.DEFAULT_PARTICLE`, a white entity effect. The fix builds the particle from the hub that is already passed in (`hub_particle`, which exists for exactly this case) so the cloud's particle reaches the client. Fixes #2633. ## Vanilla reference - `DragonFireball.onHit`: `cloud.setCustomParticle(PowerParticleOption.create(ParticleTypes.DRAGON_BREATH, 1.0F))`. - `AreaEffectCloud.DATA_PARTICLE` (entity data index 10) and `DEFAULT_PARTICLE`. - `DragonBreathParticle`: the colour range is already purple in the client's particle code. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:36 +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#4498
No description provided.