[PR #2431] [MERGED] Use the small explosion particle when an explosion keeps blocks #4309

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

📋 Pull Request Information

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

Base: main ← Head: fix/explosion-emitter-size


📝 Commits (1)

  • 85db9a2 Use the small explosion particle when an explosion keeps blocks

📊 Changes

3 files changed (+22 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/game/explosion.rs (+9 -9)
📝 crates/horizon-client/src/game/lan_particles.rs (+8 -2)
📝 crates/horizon-client/src/particles.rs (+5 -4)

📄 Description

What and why

An explosion that does not touch blocks (for example a creeper blast with mob griefing off) drew the big explosion cloud and, with it, no poof and smoke particles. In vanilla the small particle is used when the radius is below 2 or the explosion keeps blocks, and the block particle count is always the number of affected positions.

The emitter choice now follows vanilla's isSmall (radius below 2, or the explosion keeps blocks) and the block count is no longer zeroed for explosions that keep blocks. The same choice goes into the packet sent to players on a server.

Vanilla reference

  • ServerExplosion.isSmall / interactsWithBlocks
  • ServerLevel.explode (the particle and blockCount it sends)
  • ClientPacketListener.handleExplosion

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/2431 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/explosion-emitter-size` --- ### 📝 Commits (1) - [`85db9a2`](https://github.com/horizon-rust/horizon/commit/85db9a23a942a5110d099771535edc7818467753) Use the small explosion particle when an explosion keeps blocks ### 📊 Changes **3 files changed** (+22 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/explosion.rs` (+9 -9) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+8 -2) 📝 `crates/horizon-client/src/particles.rs` (+5 -4) </details> ### 📄 Description ## What and why An explosion that does not touch blocks (for example a creeper blast with mob griefing off) drew the big explosion cloud and, with it, no poof and smoke particles. In vanilla the small particle is used when the radius is below 2 or the explosion keeps blocks, and the block particle count is always the number of affected positions. The emitter choice now follows vanilla's `isSmall` (radius below 2, or the explosion keeps blocks) and the block count is no longer zeroed for explosions that keep blocks. The same choice goes into the packet sent to players on a server. ## Vanilla reference - `ServerExplosion.isSmall` / `interactsWithBlocks` - `ServerLevel.explode` (the particle and `blockCount` it sends) - `ClientPacketListener.handleExplosion` ## 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:16:14 +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#4309
No description provided.