[GH-ISSUE #1480] [server-thread] Lightning strikes do not directly damage the player #449

Closed
opened 2026-11-02 15:39:10 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1480

Tested 33e35d37c0362a0580e4927bfc12d0b15a3dc5a7, explicitly comparing --server-thread and --no-server-thread.

Reproduce in Survival: stand in shallow water and run /summon lightning_bolt ~ ~ ~. Water prevents subsequent burning from masking the strike damage.

Expected: direct lightning damage, as in old singleplayer and native 26.3.
Actual with --server-thread: player health stays 20. A nearby cow loses 5 health, confirming that the strike was processed. Old-mode player health falls 20→15. Player Fire remains negative, so these are not fire-damage differences.

Repeated in fresh pairs current-world-events-{a,b} under .local/singleplayer-audit/. The first pair uses 100 player health; the reduced second pair uses normal health. Authoritative health queries after up to 60 ticks show the same omission. Native wet-player control native-lightning-reference/check.log loses direct health while retaining negative Fire; total damage varies with the bolt's random flashes.

Hypothesis: thunder_hit checks only Game.player, omitting the integrated server's guest player.

Acceptance: a server-thread player's body inside the strike area receives the direct lightning hit, including while wet; preserve working mob damage and normal immunity rules.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1480 Tested `33e35d37c0362a0580e4927bfc12d0b15a3dc5a7`, explicitly comparing `--server-thread` and `--no-server-thread`. Reproduce in Survival: stand in shallow water and run `/summon lightning_bolt ~ ~ ~`. Water prevents subsequent burning from masking the strike damage. Expected: direct lightning damage, as in old singleplayer and native 26.3. Actual with `--server-thread`: player health stays 20. A nearby cow loses 5 health, confirming that the strike was processed. Old-mode player health falls 20→15. Player Fire remains negative, so these are not fire-damage differences. Repeated in fresh pairs `current-world-events-{a,b}` under `.local/singleplayer-audit/`. The first pair uses 100 player health; the reduced second pair uses normal health. Authoritative health queries after up to 60 ticks show the same omission. Native wet-player control `native-lightning-reference/check.log` loses direct health while retaining negative Fire; total damage varies with the bolt's random flashes. Hypothesis: `thunder_hit` checks only `Game.player`, omitting the integrated server's guest player. Acceptance: a server-thread player's body inside the strike area receives the direct lightning hit, including while wet; preserve working mob damage and normal immunity rules.
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#449
No description provided.