[PR #3908] [MERGED] Fix camel freeze after spawn and LastPoseTick saved as a sign #5286

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3908
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: fix/issue-3883-camel-pose-tick


📝 Commits (1)

  • c905367 Fix camel pose time at spawn and in LastPoseTick saves

📊 Changes

4 files changed (+185 additions, -18 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+12 -7)
📝 crates/horizon-client/src/game/persist.rs (+10 -0)
📝 crates/horizon-client/src/mobs.rs (+2 -0)
📝 crates/horizon-client/src/mobs/camel.rs (+161 -11)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #3883

A camel stored its last pose change as a signed mob age, so standUpInstantly at age 0 produced pose time 0 (read as just started standing up) and the camel could not move for 52 ticks. LastPoseTick was also saved as a sign only.

  • camel pose is now a signed age anchor (egg_time, may be negative) plus a camel_sitting flag
  • LastPoseTick is saved as the game time of the pose change (negative while sitting) and loaded back through camel::finish_load, so a reload keeps the real pose time
  • tests: fresh camel moves at once, sit/stand transitions, tick is a time, loaded camel keeps pose time

Tests: cargo test -p horizon-client --lib (mobs, entity_nbt: 145 passed), cargo clippy -D warnings clean. Harnesses not run (no .local vanilla data).


🔄 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/3908 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/issue-3883-camel-pose-tick` --- ### 📝 Commits (1) - [`c905367`](https://github.com/horizon-rust/horizon/commit/c9053670cd1bc5401ba396cf8e53787e0396dbfa) Fix camel pose time at spawn and in LastPoseTick saves ### 📊 Changes **4 files changed** (+185 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+12 -7) 📝 `crates/horizon-client/src/game/persist.rs` (+10 -0) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/camel.rs` (+161 -11) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #3883 A camel stored its last pose change as a signed mob age, so `standUpInstantly` at age 0 produced pose time 0 (read as just started standing up) and the camel could not move for 52 ticks. `LastPoseTick` was also saved as a sign only. - camel pose is now a signed age anchor (`egg_time`, may be negative) plus a `camel_sitting` flag - `LastPoseTick` is saved as the game time of the pose change (negative while sitting) and loaded back through `camel::finish_load`, so a reload keeps the real pose time - tests: fresh camel moves at once, sit/stand transitions, tick is a time, loaded camel keeps pose time Tests: `cargo test -p horizon-client --lib` (mobs, entity_nbt: 145 passed), `cargo clippy -D warnings` clean. Harnesses not run (no .local vanilla data). --- <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:31 +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#5286
No description provided.