[PR #7482] [MERGED] entities: push experience orbs in flowing water (fixes #7442) #7625

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

📋 Pull Request Information

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

Base: main ← Head: fix/7442-experience-orb-water-flow


📝 Commits (3)

  • 8d83627 entities: push experience orbs in flowing water (fixes #7442)
  • f975439 Merge remote-tracking branch 'origin/main' into fix/7442-experience-orb-water-flow
  • d6bb00a Expect the orb's float air drag in the flowing-water test

📊 Changes

4 files changed (+117 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+12 -1)
📝 crates/horizon-client/src/entities/fluids.rs (+103 -3)
📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/remote.rs (+1 -0)

📄 Description

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

Fixes #7442.

What and why

Experience orbs (ExperienceOrb) in flowing water were not pushed by water or lava currents in Horizon because ExperienceOrb::tick did not call fluid interaction. In vanilla Java Edition 26.3 (Entity.baseTick → Entity.updateFluidInteraction → applyCurrentTo), flowing water and lava push experience orbs identically to items (ItemEntity).

This change implements ExperienceOrb::update_fluids using the shared update_entity_fluids helper with vanilla orb eye height (0.425 = 0.5 * 0.85), and calls it at the start of ExperienceOrb::tick to apply fluid currents to the orb's velocity.

Verification

  • Added targeted unit test entities::fluids::tests::experience_orbs_follow_flowing_water_but_still_water_has_no_horizontal_push testing that an orb in flowing water gains horizontal push from the current and advances, while still water applies no horizontal push.
  • Ran targeted unit tests: cargo test -p horizon-client --lib entities (44 passed).
  • Ran python3 tools/check_public_tree.py (pass).
  • Ran python3 tools/pr_ready.py --base origin/main --quick (pass: all checks green).

🤖 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/7482 **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/7442-experience-orb-water-flow` --- ### 📝 Commits (3) - [`8d83627`](https://github.com/horizon-rust/horizon/commit/8d836277760350c1fafc9f36d6d2d0b9322fe067) entities: push experience orbs in flowing water (fixes #7442) - [`f975439`](https://github.com/horizon-rust/horizon/commit/f975439f5538806aa65a8ce07709c6ea9d579e7f) Merge remote-tracking branch 'origin/main' into fix/7442-experience-orb-water-flow - [`d6bb00a`](https://github.com/horizon-rust/horizon/commit/d6bb00a14d91cf11159267a1c56f5428dc53386d) Expect the orb's float air drag in the flowing-water test ### 📊 Changes **4 files changed** (+117 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+12 -1) 📝 `crates/horizon-client/src/entities/fluids.rs` (+103 -3) 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by glitchsnake's AI agent (Antigravity), not by glitchsnake personally. Fixes #7442. ## What and why Experience orbs (`ExperienceOrb`) in flowing water were not pushed by water or lava currents in Horizon because `ExperienceOrb::tick` did not call fluid interaction. In vanilla Java Edition 26.3 (`Entity.baseTick` → `Entity.updateFluidInteraction` → `applyCurrentTo`), flowing water and lava push experience orbs identically to items (`ItemEntity`). This change implements `ExperienceOrb::update_fluids` using the shared `update_entity_fluids` helper with vanilla orb eye height (`0.425` = `0.5 * 0.85`), and calls it at the start of `ExperienceOrb::tick` to apply fluid currents to the orb's velocity. ## Verification - Added targeted unit test `entities::fluids::tests::experience_orbs_follow_flowing_water_but_still_water_has_no_horizontal_push` testing that an orb in flowing water gains horizontal push from the current and advances, while still water applies no horizontal push. - Ran targeted unit tests: `cargo test -p horizon-client --lib entities` (44 passed). - Ran `python3 tools/check_public_tree.py` (pass). - Ran `python3 tools/pr_ready.py --base origin/main --quick` (pass: all checks green). 🤖 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 07:21:03 +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#7625
No description provided.