[PR #7683] Show server-set fire on the player's own screen #7758

Open
opened 2026-11-03 07:23:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7683
Author: @Joansitoh
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/7623-own-fire-flag


📝 Commits (1)

  • 0132e55 Show the server's fire on the player's own screen (#7623)

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+51 -1)

📄 Description

🤖 Opened by Joansitoh's AI agent (Claude Code, Sonnet 5.5), not by Joansitoh personally.

What

The server's on-fire flag (shared flags bit 0x01) for the window's own player was never written to the player's fire_ticks, so server-decided fire (blaze fireballs, fire aspect, lightning, burning arrows) took health but showed no fire overlay. The own-entity SetEntityData branch now stores the flag; after each predicted remote tick fire_ticks is held at ≥1 while it is set (the predicted fluid_base_tick countdown would otherwise flicker the overlay), and when the flag clears the countdown ends. Predicted lava/fire contact is untouched. Also fixes third-person burning, dynamic lights and shader-pack fire state, which read fire_ticks.

Vanilla reference

Entity.isOnFire reads the synched shared flag 0; ScreenEffectRenderer draws the fire overlay from it.

How tested

  • Unit test the_servers_fire_flag_holds_the_burning_state_through_the_countdown (helper hold_server_fire).
  • Harnesses: remote_fireball PASS, tick_step_network PASS (on retry). server_player_targets fails on effect minecraft:speed 1 600 vs 599 (effect duration timing in a chat/effect transcript, not fire related); I did not confirm it against main, so CI's run decides.

pr_ready --quick (--base upstream/main): scope 1 file +51 −1, public tree ✅, Python tests 614 ✅, rustfmt ✅, clippy ✅, horizon-client tests 699 ✅, doc tests ✅, mod API ✅.

Remaining affected harnesses: run by CI's parity job.

Suggested label: none

Fixes #7623

🤖 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/7683 **Author:** [@Joansitoh](https://github.com/Joansitoh) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/7623-own-fire-flag` --- ### 📝 Commits (1) - [`0132e55`](https://github.com/horizon-rust/horizon/commit/0132e550d0917f5b9a94ed5a0eaa401e51f08fe2) Show the server's fire on the player's own screen (#7623) ### 📊 Changes **1 file changed** (+51 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+51 -1) </details> ### 📄 Description > 🤖 Opened by Joansitoh's AI agent (Claude Code, Sonnet 5.5), not by Joansitoh personally. ## What The server's on-fire flag (shared flags bit 0x01) for the window's own player was never written to the player's `fire_ticks`, so server-decided fire (blaze fireballs, fire aspect, lightning, burning arrows) took health but showed no fire overlay. The own-entity `SetEntityData` branch now stores the flag; after each predicted remote tick `fire_ticks` is held at ≥1 while it is set (the predicted `fluid_base_tick` countdown would otherwise flicker the overlay), and when the flag clears the countdown ends. Predicted lava/fire contact is untouched. Also fixes third-person burning, dynamic lights and shader-pack fire state, which read `fire_ticks`. ## Vanilla reference `Entity.isOnFire` reads the synched shared flag 0; `ScreenEffectRenderer` draws the fire overlay from it. ## How tested - Unit test `the_servers_fire_flag_holds_the_burning_state_through_the_countdown` (helper `hold_server_fire`). - Harnesses: `remote_fireball` PASS, `tick_step_network` PASS (on retry). `server_player_targets` fails on `effect minecraft:speed 1 600` vs `599` (effect duration timing in a chat/effect transcript, not fire related); I did not confirm it against main, so CI's run decides. pr_ready --quick (`--base upstream/main`): scope 1 file +51 −1, public tree ✅, Python tests 614 ✅, rustfmt ✅, clippy ✅, horizon-client tests 699 ✅, doc tests ✅, mod API ✅. Remaining affected harnesses: run by CI's parity job. Suggested label: none Fixes #7623 🤖 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>
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#7758
No description provided.