[PR #4612] [MERGED] Cat: lie on top of a sleeping player like vanilla #5729

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4612
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/20-render


📝 Commits (1)

  • 820913d Cat: a lying cat on top of a sleeping player sits 0.15 further along (CatRenderer.setupRotations)

📊 Changes

3 files changed (+86 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+33 -0)
📝 crates/horizon-client/src/mobs.rs (+2 -0)
📝 crates/horizon-client/src/mobs/tame.rs (+51 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3519

Rows

  • CatRenderer.extractRenderState / setupRotations: the lie-down and relaxed poses were already drawn on main (tame.rs cat_amounts, cat_rotations, feline). What was missing is isLyingOnTopOfSleepingPlayer: a lying cat with a sleeping player within two blocks of its block now gets the extra translate(0.15 * lieDownAmount, 0, 0). The client computes it in its mob tick (Cat.handleLieDown) from the sleeping players it knows (other players in a bed, and itself).

Vanilla followed

Cat.handleLieDown, CatRenderer.extractRenderState, CatRenderer.setupRotations.

Tests

mobs::tame::tests::a_cat_lying_near_a_sleeper_lies_on_top_of_them; fmt and clippy -D warnings clean for horizon-client.

🤖 Generated with Claude Code


🔄 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/4612 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/20-render` --- ### 📝 Commits (1) - [`820913d`](https://github.com/horizon-rust/horizon/commit/820913dc4c19f989d993ff7666b2b33241611a8c) Cat: a lying cat on top of a sleeping player sits 0.15 further along (CatRenderer.setupRotations) ### 📊 Changes **3 files changed** (+86 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+33 -0) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/tame.rs` (+51 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3519 ## Rows - `CatRenderer.extractRenderState` / `setupRotations`: the lie-down and relaxed poses were already drawn on main (`tame.rs` `cat_amounts`, `cat_rotations`, `feline`). What was missing is `isLyingOnTopOfSleepingPlayer`: a lying cat with a sleeping player within two blocks of its block now gets the extra `translate(0.15 * lieDownAmount, 0, 0)`. The client computes it in its mob tick (`Cat.handleLieDown`) from the sleeping players it knows (other players in a bed, and itself). ## Vanilla followed `Cat.handleLieDown`, `CatRenderer.extractRenderState`, `CatRenderer.setupRotations`. ## Tests `mobs::tame::tests::a_cat_lying_near_a_sleeper_lies_on_top_of_them`; fmt and clippy -D warnings clean for horizon-client. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:35 +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#5729
No description provided.