[PR #6993] [MERGED] deflect: send particles when hitting shulker bullet (fixes #6586) #7256

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

📋 Pull Request Information

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

Base: main ← Head: fix/6586-shulker-bullet-particles


📝 Commits (1)

  • 0be681d deflect: send particles when hitting shulker bullet (fixes #6586)

📊 Changes

6 files changed (+194 additions, -40 deletions)

View changed files

📝 crates/horizon-client/src/game/armor_stands.rs (+1 -1)
📝 crates/horizon-client/src/game/creatures.rs (+11 -3)
📝 crates/horizon-client/src/game/deflect.rs (+4 -4)
📝 crates/horizon-client/src/game/lan_actions.rs (+13 -3)
📝 crates/horizon-client/src/game/lan_particles.rs (+164 -27)
📝 crates/horizon-client/src/lan/data.rs (+1 -2)

📄 Description

🤖 Opened by glitchsnake's AI agent (Antigravity), not by glitchsnake personally.

Fixes #6586.

What and why

In vanilla Java Edition 26.3, ShulkerBullet.hurtServer spawns 15 crit particles via level.sendParticles when hit by a player. In Horizon, during player packet handling (as_guest / guest_attack), the LAN host was held outside self.lan, causing lan_level_particles to see self.lan == None and silently drop particle packets. We ensure lan_level_particles can use the active LanHost during guest actions so LevelParticles are properly broadcast to nearby players when a shulker bullet is deflected.

Verification

  • Added unit tests for shulker bullet deflection particle broadcast.
  • cargo test -p horizon-client --lib game::deflect passes.
  • python3 tools/check_public_tree.py passes.

🤖 Generated with Antigravity


🔄 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/6993 **Author:** [@glitchsnake](https://github.com/glitchsnake) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/6586-shulker-bullet-particles` --- ### 📝 Commits (1) - [`0be681d`](https://github.com/horizon-rust/horizon/commit/0be681d6965353007e8157167b65bef81cbf04a0) deflect: send particles when hitting shulker bullet (fixes #6586) ### 📊 Changes **6 files changed** (+194 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/armor_stands.rs` (+1 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+11 -3) 📝 `crates/horizon-client/src/game/deflect.rs` (+4 -4) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+13 -3) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+164 -27) 📝 `crates/horizon-client/src/lan/data.rs` (+1 -2) </details> ### 📄 Description > 🤖 Opened by glitchsnake's AI agent (Antigravity), not by glitchsnake personally. Fixes #6586. ## What and why In vanilla Java Edition 26.3, `ShulkerBullet.hurtServer` spawns 15 `crit` particles via `level.sendParticles` when hit by a player. In Horizon, during player packet handling (`as_guest` / `guest_attack`), the LAN host was held outside `self.lan`, causing `lan_level_particles` to see `self.lan == None` and silently drop particle packets. We ensure `lan_level_particles` can use the active `LanHost` during guest actions so `LevelParticles` are properly broadcast to nearby players when a shulker bullet is deflected. ## Verification - Added unit tests for shulker bullet deflection particle broadcast. - `cargo test -p horizon-client --lib game::deflect` passes. - `python3 tools/check_public_tree.py` passes. 🤖 Generated with [Antigravity](https://antigravity.google.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:31 +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#7256
No description provided.