[PR #4306] [MERGED] Keep the sheep undercoat when the sheep is sheared #5550

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4306
Author: @MSedgeMC
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/sheared-undercoat


📝 Commits (2)

  • dd0a1e4 Keep the sheep undercoat when the sheep is sheared
  • f0d20be Merge main into fix/sheared-undercoat

📊 Changes

1 file changed (+69 additions, -17 deletions)

View changed files

📝 crates/horizon-client/src/mobs/render.rs (+69 -17)

📄 Description

Fixes #4305.

Vanilla's two sheep wool layers disagree about shearing. SheepWoolLayer.submit begins with if (state.isSheared) return;. SheepWoolUndercoatLayer.submit has one guard — !isInvisible && (isJebSheep || woolColor != WHITE) && !isBaby — and references only those four fields, so it has no sheared test. Horizon put both pushes behind a single S::Sheep if !m.extra.sheared arm, so a sheared dyed sheep drew neither layer.

One file: the sheared guard now wraps only the wool push, using the existing aby_or helper; the undercoat keeps its conditions and is still pushed first. Unsheared output is byte-identical — same models, textures, colour local and order.

What is proven: the test ran on a build box with the pinned 26.3 resources prepared — cargo test -p horizon-client --lib sheared -> 2 passed. It asserts (model, texture, colour) triples for five cases; only the first (sheared dyed adult keeps exactly the undercoat) is red on today's code, the rest are guards against moving the guard too far, against a baby gaining an undercoat, and against the unsheared path changing.

What is not proven: no screenshot, and pr_ready was not run on this branch — CI's erify is the workspace check.

Heads-up for the reviewer: this edits the same sheep arm as #4274 (the jeb_ wool colour). Whichever of the two merges second needs a rebase — I will do it. Deliberately no jeb_ handling here: on vanilla the undercoat condition is isJebSheep || woolColor != WHITE, so #4274 adds the || and this PR leaves the seat for it empty.


🔄 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/4306 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/sheared-undercoat` --- ### 📝 Commits (2) - [`dd0a1e4`](https://github.com/horizon-rust/horizon/commit/dd0a1e4972864e755ce54693b4154c17f9b2e390) Keep the sheep undercoat when the sheep is sheared - [`f0d20be`](https://github.com/horizon-rust/horizon/commit/f0d20beff865f7a0c9a0308e5136de031e1dc492) Merge main into fix/sheared-undercoat ### 📊 Changes **1 file changed** (+69 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/render.rs` (+69 -17) </details> ### 📄 Description Fixes #4305. Vanilla's two sheep wool layers disagree about shearing. SheepWoolLayer.submit begins with if (state.isSheared) return;. SheepWoolUndercoatLayer.submit has one guard — !isInvisible && (isJebSheep || woolColor != WHITE) && !isBaby — and references only those four fields, so it has no sheared test. Horizon put both pushes behind a single S::Sheep if !m.extra.sheared arm, so a sheared dyed sheep drew neither layer. One file: the sheared guard now wraps only the wool push, using the existing aby_or helper; the undercoat keeps its conditions and is still pushed first. Unsheared output is byte-identical — same models, textures, colour local and order. **What is proven:** the test ran on a build box with the pinned 26.3 resources prepared — cargo test -p horizon-client --lib sheared -> 2 passed. It asserts (model, texture, colour) triples for five cases; only the first (sheared dyed adult keeps exactly the undercoat) is red on today's code, the rest are guards against moving the guard too far, against a baby gaining an undercoat, and against the unsheared path changing. **What is not proven:** no screenshot, and pr_ready was not run on this branch — CI's erify is the workspace check. Heads-up for the reviewer: this edits the same sheep arm as #4274 (the jeb_ wool colour). Whichever of the two merges second needs a rebase — I will do it. Deliberately no jeb_ handling here: on vanilla the undercoat condition is isJebSheep || woolColor != WHITE, so #4274 adds the || and this PR leaves the seat for it empty. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:21 +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#5550
No description provided.