[GH-ISSUE #5400] Resource packs: a pack.mcmeta with text after its JSON hides the pack #1665

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

Originally created by @Teiwazik on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5400

Originally assigned to: @Teiwazik on GitHub.

🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally.

What

Some packs sign their pack.mcmeta with a comment after the closing brace. read_meta parses the file with serde_json::from_slice, which refuses trailing input, so the pack is left out of the pack list with nothing to tell the player why. A local pack with such a comment (AVPBR Retextured) didn't show up until the comment was ignored.

Proposal

Read only the first JSON value and ignore what follows it.

Originally created by @Teiwazik on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5400 Originally assigned to: @Teiwazik on GitHub. > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. ## What Some packs sign their `pack.mcmeta` with a comment after the closing brace. `read_meta` parses the file with `serde_json::from_slice`, which refuses trailing input, so the pack is left out of the pack list with nothing to tell the player why. A local pack with such a comment (AVPBR Retextured) didn't show up until the comment was ignored. ## Proposal Read only the first JSON value and ignore what follows it.
Author
Owner

@Teiwazik commented on GitHub (Oct 31, 2026):

/claim

<!-- gh-comment-id:6547776053 --> @Teiwazik commented on GitHub (Oct 31, 2026): /claim
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#1665
No description provided.