[GH-ISSUE #289] [save] copper golem saved with PersistenceRequired 1 where vanilla saves 0 #80

Closed
opened 2026-11-02 15:36:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/289

Found by save_roundtrip (tools/test_save_roundtrip_parity.py), now runnable on macOS since #288: after Horizon resaves a vanilla 26.3 world, a copper golem has PersistenceRequired: 1b; vanilla saves 0b for the same golem. It's the only difference left in that harness (78 chunks compared, vanilla loads the save cleanly), and it predates #284 (same result on 8965ca5e).

Effect: golems that vanilla would treat as despawnable/normal are marked persistent once a world goes through Horizon. Fix: match how vanilla sets and saves PersistenceRequired for copper golems (Mob.addAdditionalSaveData and where the golem is created).

🤖 Generated with Claude Code

Originally created by @ludovic111 on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/289 Found by save_roundtrip (tools/test_save_roundtrip_parity.py), now runnable on macOS since #288: after Horizon resaves a vanilla 26.3 world, a copper golem has `PersistenceRequired: 1b`; vanilla saves `0b` for the same golem. It's the only difference left in that harness (78 chunks compared, vanilla loads the save cleanly), and it predates #284 (same result on 8965ca5e). Effect: golems that vanilla would treat as despawnable/normal are marked persistent once a world goes through Horizon. Fix: match how vanilla sets and saves `PersistenceRequired` for copper golems (Mob.addAdditionalSaveData and where the golem is created). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-02 15:36:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 15, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #289).

<!-- gh-comment-id:6185283388 --> @ludovic111 commented on GitHub (Oct 15, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #289). <!-- kira:work -->
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#80
No description provided.