[PR #1090] [MERGED] Client logs: no warning for minecraft:missingno; say when no sounds loaded #3039

Closed
opened 2026-11-02 16:01:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1090
Author: @ludovic111
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @ludovic111

Base: main ← Head: fix/missingno-warning


📝 Commits (1)

  • 57cc113 Client logs: no warning for minecraft:missingno; say when no sounds loaded

📊 Changes

3 files changed (+19 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/audio.rs (+9 -0)
📝 crates/horizon-client/src/sound_events.rs (+5 -0)
📝 crates/horizon-client/src/sprites.rs (+5 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Two log lines in the client:

  1. No more Horizon: using the missing texture for minecraft:missingno warning (#853, reported by @Online5277, who took it for a build error). Vanilla's block/air.json sets its particle to minecraft:missingno on purpose, which is MissingTextureAtlasSprite.getLocation(); vanilla's atlas always holds that sprite, so nothing is wrong. Other missing textures still warn.
  2. A warning when the game has no sounds at all (#1035, #1076). When sounds.json is missing from the resources, the game opens the output device and plays nothing; the log said only Horizon: audio output … (48000 Hz, 2 channels, f32), which is all the logs in #1035 showed. It now says: Horizon: no sounds in <resources>/assets: they were not copied from your Minecraft install; prepare the game again in the launcher (or run horizon-prepare sounds).

Proof

Vanilla: assets/minecraft/models/block/air.json in the 26.3 client JAR is {"textures": {"particle": "minecraft:missingno"}}.

Self-check (Mac mini):

cargo fmt --all --check                                   OK
set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings   OK (exit 0)
cargo test -p horizon-client --lib -- sound sprite audio  44 passed

No game behaviour changes (log lines only), so no parity harness covers it; CI's parity job runs whatever --changed selects.

Fixes #853
Part of #1035 (the root cause there is most likely #1076's asset-index problem).

🤖 Generated with Claude Code


🔄 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/1090 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/missingno-warning` --- ### 📝 Commits (1) - [`57cc113`](https://github.com/horizon-rust/horizon/commit/57cc113be4bf3042bd64e260f2349308270031f1) Client logs: no warning for minecraft:missingno; say when no sounds loaded ### 📊 Changes **3 files changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/audio.rs` (+9 -0) 📝 `crates/horizon-client/src/sound_events.rs` (+5 -0) 📝 `crates/horizon-client/src/sprites.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Two log lines in the client: 1. **No more `Horizon: using the missing texture for minecraft:missingno` warning** (#853, reported by **@Online5277**, who took it for a build error). Vanilla's `block/air.json` sets its particle to `minecraft:missingno` on purpose, which is `MissingTextureAtlasSprite.getLocation()`; vanilla's atlas always holds that sprite, so nothing is wrong. Other missing textures still warn. 2. **A warning when the game has no sounds at all** (#1035, #1076). When `sounds.json` is missing from the resources, the game opens the output device and plays nothing; the log said only `Horizon: audio output … (48000 Hz, 2 channels, f32)`, which is all the logs in #1035 showed. It now says: `Horizon: no sounds in <resources>/assets: they were not copied from your Minecraft install; prepare the game again in the launcher (or run horizon-prepare sounds)`. ## Proof Vanilla: `assets/minecraft/models/block/air.json` in the 26.3 client JAR is `{"textures": {"particle": "minecraft:missingno"}}`. Self-check (Mac mini): ``` cargo fmt --all --check OK set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings OK (exit 0) cargo test -p horizon-client --lib -- sound sprite audio 44 passed ``` No game behaviour changes (log lines only), so no parity harness covers it; CI's parity job runs whatever `--changed` selects. Fixes #853 Part of #1035 (the root cause there is most likely #1076's asset-index problem). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:01:00 +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#3039
No description provided.