[PR #2372] [MERGED] Spin the player arrow on a Nether map #4250

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

📋 Pull Request Information

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

Base: main ← Head: fix/nether-map-arrow-spin


📝 Commits (1)

  • de1e5f7 Spin the player arrow on a Nether map

📊 Changes

1 file changed (+2 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/maps.rs (+2 -3)

📄 Description

What and why

In the Nether, the player arrow on a map should spin. Horizon always drew it at the player's facing, because the player marker did not use the Nether rotation that the map's other markers already use.

The player marker now goes through decoration_rotation, which already holds the Nether formula. Works in-frame and for guests, since both go through the same marker code.

Vanilla reference

MapItemSavedData.calculateRotation (Nether branch: s = gameTime / 10, s * s * 34187121 + s * 121 >> 15 & 15), used by playerDecorationTypeAndRotation.

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/2372 **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/nether-map-arrow-spin` --- ### 📝 Commits (1) - [`de1e5f7`](https://github.com/horizon-rust/horizon/commit/de1e5f729226070d11aaca39c2a6d248797fc029) Spin the player arrow on a Nether map ### 📊 Changes **1 file changed** (+2 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/maps.rs` (+2 -3) </details> ### 📄 Description ## What and why In the Nether, the player arrow on a map should spin. Horizon always drew it at the player's facing, because the player marker did not use the Nether rotation that the map's other markers already use. The player marker now goes through `decoration_rotation`, which already holds the Nether formula. Works in-frame and for guests, since both go through the same marker code. ## Vanilla reference `MapItemSavedData.calculateRotation` (Nether branch: `s = gameTime / 10`, `s * s * 34187121 + s * 121 >> 15 & 15`), used by `playerDecorationTypeAndRotation`. ## 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:15:48 +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#4250
No description provided.