[PR #2569] [MERGED] Check rain at the player's and arrow's position #4434

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

📋 Pull Request Information

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

Base: main ← Head: fix/rain-at-game


📝 Commits (2)

  • 87d577e Check rain at the player's and arrow's position
  • 4d897de Play the rain extinguish sound for every player

📊 Changes

6 files changed (+45 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+9 -0)
📝 crates/horizon-client/src/game/block_entity_anims.rs (+1 -1)
📝 crates/horizon-client/src/game/creatures.rs (+2 -4)
📝 crates/horizon-client/src/game/lan_actions.rs (+2 -0)
📝 crates/horizon-client/src/game/powder_snow.rs (+28 -2)
📝 crates/horizon-client/src/game/trident.rs (+3 -3)

📄 Description

What and why

Three game side checks used the global weather flag or only the sky light, where vanilla asks whether it rains at the entity's position (Level.isRainingAt, which also checks the blocks above and the biome's precipitation).

  • Arrows used "raining and sky light 15", so a burning arrow was put out by snow, in dry biomes, and under blocks the sky light passes through. It now uses the full rain check.
  • A Riptide trident was usable in any rain with sky light above the player. It now needs rain at the player's block or the top of the box (Entity.isInRain).
  • A burning player was never put out by rain. Rain now clears the fire, with the extinguish sound in the window. The same call runs in the guest's server tick (guest_server_tick), so it works on the server thread too; no sound is played there, like water.

Vanilla reference

  • Level.isRainingAt, Level.precipitationAt
  • Entity.isInRain, Entity.isInWaterOrRain, Entity.baseTick
  • AbstractArrow.tick, TridentItem.releaseUsing and use

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/2569 **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/rain-at-game` --- ### 📝 Commits (2) - [`87d577e`](https://github.com/horizon-rust/horizon/commit/87d577e5665b72ae2c54d9044ad0dfa37f45b1fa) Check rain at the player's and arrow's position - [`4d897de`](https://github.com/horizon-rust/horizon/commit/4d897de20bcd4353ca85bc214de2f7319e5d5720) Play the rain extinguish sound for every player ### 📊 Changes **6 files changed** (+45 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+9 -0) 📝 `crates/horizon-client/src/game/block_entity_anims.rs` (+1 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+2 -4) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+2 -0) 📝 `crates/horizon-client/src/game/powder_snow.rs` (+28 -2) 📝 `crates/horizon-client/src/game/trident.rs` (+3 -3) </details> ### 📄 Description ## What and why Three game side checks used the global weather flag or only the sky light, where vanilla asks whether it rains at the entity's position (`Level.isRainingAt`, which also checks the blocks above and the biome's precipitation). - Arrows used "raining and sky light 15", so a burning arrow was put out by snow, in dry biomes, and under blocks the sky light passes through. It now uses the full rain check. - A Riptide trident was usable in any rain with sky light above the player. It now needs rain at the player's block or the top of the box (`Entity.isInRain`). - A burning player was never put out by rain. Rain now clears the fire, with the extinguish sound in the window. The same call runs in the guest's server tick (`guest_server_tick`), so it works on the server thread too; no sound is played there, like water. ## Vanilla reference - `Level.isRainingAt`, `Level.precipitationAt` - `Entity.isInRain`, `Entity.isInWaterOrRain`, `Entity.baseTick` - `AbstractArrow.tick`, `TridentItem.releaseUsing` and `use` ## 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:07 +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#4434
No description provided.