[PR #5791] [MERGED] Let arrows go through nether and End portals as vanilla does #6499

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5791
Author: @kacpherek
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/arrows-through-portals


📝 Commits (2)

  • 2f31408 Let arrows go through nether and End portals as vanilla does
  • a02d561 Merge main into #5791

📊 Changes

3 files changed (+76 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/arrows.rs (+2 -2)
📝 crates/horizon-client/src/game/nether_portal.rs (+69 -2)
📝 crates/horizon-client/src/game/persist.rs (+5 -0)

📄 Description

What and why

Arrows flew straight through portal blocks (#5611): portal detection covered items, mobs, empty boats and minecarts only. In vanilla an arrow uses portals like any entity: Entity.canUsePortal (no override in Projectile or AbstractArrow), NetherPortalBlock.entityInside has no projectile exclusion, and the transition time is 0 for non-players; a stuck arrow skips its move in AbstractArrow.tick. Arrows are now swept from their start-of-tick position, get a portal state, are saved as arrivals with arrow_to_nbt, and keep their portal cooldown on arrival so they don't bounce straight back.

Fixes #5611.

Not covered

Tridents (also AbstractArrow in vanilla) are not handled yet, and the arrow leaves at the start of the next tick, as items and mobs already do, not inside the same tick.

How it was checked

cargo check -p horizon-client --tests passes; Python suite passes (511); rustfmt clean. Not run in game.


🔄 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/5791 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/arrows-through-portals` --- ### 📝 Commits (2) - [`2f31408`](https://github.com/horizon-rust/horizon/commit/2f31408502100f9603c8d0901ab53f5adcacb700) Let arrows go through nether and End portals as vanilla does - [`a02d561`](https://github.com/horizon-rust/horizon/commit/a02d561d49ab18c0f96aa6da740f8485e317acac) Merge main into #5791 ### 📊 Changes **3 files changed** (+76 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/arrows.rs` (+2 -2) 📝 `crates/horizon-client/src/game/nether_portal.rs` (+69 -2) 📝 `crates/horizon-client/src/game/persist.rs` (+5 -0) </details> ### 📄 Description ## What and why Arrows flew straight through portal blocks (#5611): portal detection covered items, mobs, empty boats and minecarts only. In vanilla an arrow uses portals like any entity: `Entity.canUsePortal` (no override in `Projectile` or `AbstractArrow`), `NetherPortalBlock.entityInside` has no projectile exclusion, and the transition time is 0 for non-players; a stuck arrow skips its move in `AbstractArrow.tick`. Arrows are now swept from their start-of-tick position, get a portal state, are saved as arrivals with `arrow_to_nbt`, and keep their portal cooldown on arrival so they don't bounce straight back. Fixes #5611. ## Not covered Tridents (also `AbstractArrow` in vanilla) are not handled yet, and the arrow leaves at the start of the next tick, as items and mobs already do, not inside the same tick. ## How it was checked `cargo check -p horizon-client --tests` passes; Python suite passes (511); rustfmt clean. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:21:40 +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#6499
No description provided.