[GH-ISSUE #4305] A sheared dyed sheep loses its wool undercoat, which vanilla keeps #1267

Closed
opened 2026-11-02 15:45:34 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @MSedgeMC on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4305

A sheared sheep that has been dyed loses its wool undercoat as well as its wool. Vanilla keeps the undercoat: shear a red sheep and you still see the red undercoat layer; shear a white one and you see nothing.

Vanilla has two sheep wool layers and only one of them cares about shearing. SheepWoolLayer.submit starts with if (state.isSheared) return;. SheepWoolUndercoatLayer.submit has a single guard instead — !state.isInvisible && (state.isJebSheep || state.woolColor != DyeColor.WHITE) && !state.isBaby — and its constant pool references only isInvisible, isJebSheep, woolColor and isBaby, so there is no sheared test anywhere in it.

Horizon gates both pushes behind one S::Sheep if !m.extra.sheared arm in crates/horizon-client/src/mobs/render.rs, so a sheared sheep of any colour draws neither layer.

Found while fixing the jeb_ sheep (#3958), where the same arm decides the undercoat; it is a separate pre-existing deviation and affects dyed sheep regardless of any name.

Originally created by @MSedgeMC on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4305 A sheared sheep that has been dyed loses its wool undercoat as well as its wool. Vanilla keeps the undercoat: shear a red sheep and you still see the red undercoat layer; shear a white one and you see nothing. Vanilla has two sheep wool layers and only one of them cares about shearing. `SheepWoolLayer.submit` starts with `if (state.isSheared) return;`. `SheepWoolUndercoatLayer.submit` has a single guard instead — `!state.isInvisible && (state.isJebSheep || state.woolColor != DyeColor.WHITE) && !state.isBaby` — and its constant pool references only `isInvisible`, `isJebSheep`, `woolColor` and `isBaby`, so there is no sheared test anywhere in it. Horizon gates both pushes behind one `S::Sheep if !m.extra.sheared` arm in `crates/horizon-client/src/mobs/render.rs`, so a sheared sheep of any colour draws neither layer. Found while fixing the `jeb_` sheep (#3958), where the same arm decides the undercoat; it is a separate pre-existing deviation and affects dyed sheep regardless of any name.
Author
Owner

@sirrayi commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6535208726 --> @sirrayi commented on GitHub (Oct 30, 2026): /claim
Author
Owner

@sirrayi commented on GitHub (Oct 30, 2026):

/unclaim

<!-- gh-comment-id:6536119399 --> @sirrayi commented on GitHub (Oct 30, 2026): /unclaim
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#1267
No description provided.