[PR #3928] [MERGED] Riptide in rain works on a server's client: isInRain from its own chunks and weather #5297

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3928
Author: @xFedeT
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/riptide-with-elytra


📝 Commits (2)

  • 9751bdf Riptide in rain on a server's client: isInRain from its own chunks and weather
  • 55db71a Merge remote-tracking branch 'origin/main' into fix/riptide-with-elytra

📊 Changes

2 files changed (+41 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/block_entity_anims.rs (+5 -0)
📝 tools/lan_e2e.py (+36 -0)

📄 Description

🤖 Opened by Federico's AI agent (Claude), not by Federico himself.

Refs #3458. Checked: no open PR touches the Riptide trident or in_rain. The issue is not claimed in Kira yet (8-claim cap); I left a comment on it and will claim it when a slot frees. It stays Refs because I could not run the reporter's PaperMC setup.

What and why

On a world's server (LAN guest, PaperMC, any server) a Riptide trident never started charging in rain: use_trident returned before using was set, so there was no launch and no way to use the trident. The window of a client of a server asks Entity.isInRain through the behaviours' is_raining_at, which needs the biome's live features; a client of a server has none, so it answered "no rain" in every biome, while the weather, the sky light and the heightmap were all right (verified: rain level 1.0, sky light 15, top block at the player's feet). Only the host's own window (which has them) launched. Water worked; rain did not, with or without an elytra.

Change

  • game/block_entity_anims.rs in_rain: a client of a server (self.remote) answers from its own chunks and weather (raining_at: rain level, sky light, motion-blocking height, the biome's precipitation), as vanilla's client does. The same call serves the arrow in rain, the conduit and the fire put out in rain on such a client.

Vanilla reference

TridentItem.use/releaseUsing (isInWaterOrRain), Entity.isInRain, Level.isRainingAt.

Testing

  • New lan_e2e --check riptide_rain (host and guest, in rain, with and without an elytra worn): each launches with a Riptide III trident (more than 4 blocks). On main the guest does not move at all (guest-plain: ... 0.0 blocks); with this change it passes. The host's own window passed both before and after.
  • pr_ready --quick (Python 3.12): Python tests (474), rustfmt and clippy pass; horizon-client tests: 674 pass, 1 fails on main too (entity_nbt::axolotl_nbt_tests::bucket_cooldown_and_brain_memories_survive_and_expired_cooldown_is_removed), fixed by the open #3851.

🤖 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/3928 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/riptide-with-elytra` --- ### 📝 Commits (2) - [`9751bdf`](https://github.com/horizon-rust/horizon/commit/9751bdf0aba2373d42bcb7d67a2b6c25d0a836f3) Riptide in rain on a server's client: isInRain from its own chunks and weather - [`55db71a`](https://github.com/horizon-rust/horizon/commit/55db71a9ff93e673df86a89cd035e02d5df80a14) Merge remote-tracking branch 'origin/main' into fix/riptide-with-elytra ### 📊 Changes **2 files changed** (+41 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/block_entity_anims.rs` (+5 -0) 📝 `tools/lan_e2e.py` (+36 -0) </details> ### 📄 Description > 🤖 Opened by Federico's AI agent (Claude), not by Federico himself. Refs #3458. Checked: no open PR touches the Riptide trident or `in_rain`. The issue is not claimed in Kira yet (8-claim cap); I left a comment on it and will claim it when a slot frees. It stays `Refs` because I could not run the reporter's PaperMC setup. ## What and why On a world's server (LAN guest, PaperMC, any server) a Riptide trident never started charging in rain: `use_trident` returned before `using` was set, so there was no launch and no way to use the trident. The window of a client of a server asks `Entity.isInRain` through the behaviours' `is_raining_at`, which needs the biome's live features; a client of a server has none, so it answered "no rain" in every biome, while the weather, the sky light and the heightmap were all right (verified: rain level 1.0, sky light 15, top block at the player's feet). Only the host's own window (which has them) launched. Water worked; rain did not, with or without an elytra. ## Change - `game/block_entity_anims.rs` `in_rain`: a client of a server (`self.remote`) answers from its own chunks and weather (`raining_at`: rain level, sky light, motion-blocking height, the biome's precipitation), as vanilla's client does. The same call serves the arrow in rain, the conduit and the fire put out in rain on such a client. ## Vanilla reference `TridentItem.use`/`releaseUsing` (`isInWaterOrRain`), `Entity.isInRain`, `Level.isRainingAt`. ## Testing - New `lan_e2e --check riptide_rain` (host and guest, in rain, with and without an elytra worn): each launches with a Riptide III trident (more than 4 blocks). On `main` the guest does not move at all (`guest-plain: ... 0.0 blocks`); with this change it passes. The host's own window passed both before and after. - `pr_ready --quick` (Python 3.12): Python tests (474), rustfmt and clippy pass; `horizon-client` tests: 674 pass, 1 fails on `main` too (`entity_nbt::axolotl_nbt_tests::bucket_cooldown_and_brain_memories_survive_and_expired_cooldown_is_removed`), fixed by the open #3851. 🤖 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>
bsakaguchi 2026-11-03 05:11:36 +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#5297
No description provided.