[PR #2311] [MERGED] Shulkers keep their body still while the head turns #4194

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

📋 Pull Request Information

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

Base: main ← Head: fix/1661-shulker-rotation


📝 Commits (1)

  • a6d2eb9 Shulkers keep their body still while the head turns

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/mobs/control.rs (+7 -0)

📄 Description

What and why

Shulkers could turn on the spot like ordinary mobs instead of staying locked to their attach face. The head turn logic that normal mobs use (body_rotation_tick) also ran for shulkers, so after the head turned more than 15 degrees the body yaw followed it. Vanilla never turns a shulker's body.

Fix: body_rotation_tick does nothing for a shulker except keep the body yaw at 0. This covers the in-process server's mobs and the mobs a client builds from packets.

Fixes #1661.

Vanilla reference

  • Shulker.ShulkerBodyRotationControl.clientTick (empty)
  • Shulker.recreateFromPacket (body yaw reset to 0)
  • ShulkerRenderer.setupRotations

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/2311 **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/1661-shulker-rotation` --- ### 📝 Commits (1) - [`a6d2eb9`](https://github.com/horizon-rust/horizon/commit/a6d2eb9d6421d1bbf54c4fb366438a70682946de) Shulkers keep their body still while the head turns ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/control.rs` (+7 -0) </details> ### 📄 Description ## What and why Shulkers could turn on the spot like ordinary mobs instead of staying locked to their attach face. The head turn logic that normal mobs use (`body_rotation_tick`) also ran for shulkers, so after the head turned more than 15 degrees the body yaw followed it. Vanilla never turns a shulker's body. Fix: `body_rotation_tick` does nothing for a shulker except keep the body yaw at 0. This covers the in-process server's mobs and the mobs a client builds from packets. Fixes #1661. ## Vanilla reference - `Shulker.ShulkerBodyRotationControl.clientTick` (empty) - `Shulker.recreateFromPacket` (body yaw reset to 0) - `ShulkerRenderer.setupRotations` ## 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:22 +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#4194
No description provided.