[GH-ISSUE #1369] [both singleplayer modes] Sheep lose dyed color and sheared state after reopening #394

Closed
opened 2026-11-02 15:38:46 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1369

Tested 83fa14e51b89eab728b8e233e9e5d95296bef93d; affects both --no-server-thread and --server-thread.

Reproduce

  1. Keep a white sheep on stone, dye it red, then shear it. Confirm red wool drops.
  2. Save, quit and reopen the world before it can eat grass/regrow wool.
  3. Shear the same sheep again.

Expected: Its red color and sheared state persist; it cannot provide wool again until regrowth.

Actual: It reloads white and unsheared, and immediately drops new white wool. Both modes save Color=0 and Sheared=0 despite the completed dye/shear actions. The NoAI fixture cannot eat or regrow wool; this is a persistence failure, separate from threaded appearance desync.

Evidence: .local/singleplayer-audit/visual-b/sheep-reopen-{old,threaded}/result.json, reopened screenshots/saves; independent original saves in visual-a/sheep-*/saves/Audit also contain the incorrect fields. Native 26.3 Sheep.addAdditionalSaveData writes current color and sheared state.

Driver: tools/singleplayer_visual_audit.py --case sheep-reopen. Existing sheep searches found no matching save report.

Hypothesis: entity_nbt::mob_to_nbt preserves/inserts default Color/Sheared tags instead of writing current sheep state.

Acceptance: Dye/shear state survives save/reopen and chunk reload in both modes; reloading does not grant another immediate shearing.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1369 Tested `83fa14e51b89eab728b8e233e9e5d95296bef93d`; affects both `--no-server-thread` and `--server-thread`. **Reproduce** 1. Keep a white sheep on stone, dye it red, then shear it. Confirm red wool drops. 2. Save, quit and reopen the world before it can eat grass/regrow wool. 3. Shear the same sheep again. **Expected:** Its red color and sheared state persist; it cannot provide wool again until regrowth. **Actual:** It reloads white and unsheared, and immediately drops new white wool. Both modes save Color=0 and Sheared=0 despite the completed dye/shear actions. The NoAI fixture cannot eat or regrow wool; this is a persistence failure, separate from threaded appearance desync. Evidence: `.local/singleplayer-audit/visual-b/sheep-reopen-{old,threaded}/result.json`, reopened screenshots/saves; independent original saves in `visual-a/sheep-*/saves/Audit` also contain the incorrect fields. Native 26.3 `Sheep.addAdditionalSaveData` writes current color and sheared state. Driver: `tools/singleplayer_visual_audit.py --case sheep-reopen`. Existing sheep searches found no matching save report. **Hypothesis:** `entity_nbt::mob_to_nbt` preserves/inserts default Color/Sheared tags instead of writing current sheep state. **Acceptance:** Dye/shear state survives save/reopen and chunk reload in both modes; reloading does not grant another immediate shearing.
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#394
No description provided.