[PR #5361] [CLOSED] Draw the F3 biome line the option promises #6239

Closed
opened 2026-11-03 06:16:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5361
Author: @MSedgeMC
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix/f3-biome-line


📝 Commits (1)

  • e4dd105 Draw the F3 biome line the option promises

📊 Changes

2 files changed (+7 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/debug_keys.rs (+6 -0)
📝 crates/horizon-client/src/game/music.rs (+1 -1)

📄 Description

The minecraft:biome debug option exists in Horizon's entries table and drew nothing; vanilla's DebugEntryBiome.display adds a Biome: line when the camera entity is inside the build height.

Six lines: make the existing biome lookup visible to the debug module and add the line with vanilla's height guard. The id needed no reformatting — the lookup already returns the namespaced name vanilla prints.

Two things worth knowing before review: the entry defaults to Never in both vanilla and Horizon, so nothing changes on screen until a player enables it in the F3 debug options; and this uses the player's position rather than vanilla's camera entity, so a spectator camera following a mob is not covered — the same limit the position lines above it already have.

Not proven: no F3-overlay harness exists and a Game cannot be built in a unit test, so this is compile-checked only (cargo check -p horizon-client --lib --bins, clean).


🔄 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/5361 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/f3-biome-line` --- ### 📝 Commits (1) - [`e4dd105`](https://github.com/horizon-rust/horizon/commit/e4dd10512db3dbcb9e6da6288279d54c6d9ce900) Draw the F3 biome line the option promises ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/debug_keys.rs` (+6 -0) 📝 `crates/horizon-client/src/game/music.rs` (+1 -1) </details> ### 📄 Description The minecraft:biome debug option exists in Horizon's entries table and **drew nothing**; vanilla's DebugEntryBiome.display adds a Biome: <namespaced id> line when the camera entity is inside the build height. Six lines: make the existing biome lookup visible to the debug module and add the line with vanilla's height guard. The id needed no reformatting — the lookup already returns the namespaced name vanilla prints. Two things worth knowing before review: the entry defaults to **Never** in both vanilla and Horizon, so nothing changes on screen until a player enables it in the F3 debug options; and this uses the player's position rather than vanilla's camera entity, so a spectator camera following a mob is not covered — the same limit the position lines above it already have. **Not proven:** no F3-overlay harness exists and a Game cannot be built in a unit test, so this is compile-checked only (cargo check -p horizon-client --lib --bins, clean). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:16:13 +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#6239
No description provided.