[PR #4197] [MERGED] Scale attribute: the view-blocking check follows the player's scale #5475

Closed
opened 2026-11-03 05:12:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4197
Author: @kacpherek
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/gameplay-world-scale


📝 Commits (2)

  • 85b5ff7 Scale the view-blocking probe height with the player's scale
  • 111081b Merge main into fix/gameplay-world-scale

📊 Changes

2 files changed (+11 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -1)
📝 crates/horizon-client/src/game/render_tick.rs (+5 -2)

📄 Description

What and why

  • Scale the view-blocking probe height with the player's scale: The block overlay (the dark stretched texture over the screen) probes eight points around the eye, 0.1 apart in height. Vanilla multiplies that by LivingEntity.getScale (LevelExtractor.getViewBlockingStateAndPos). Horizon used a fixed 0.1, so a player of scale 0.01, whose eye is 0.0162 above the feet, probed the ground block and got its overlay over the whole screen. Part of #3809

Self-check

rustfmt on changed files; built by CI; not run in game.


🔄 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/4197 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/gameplay-world-scale` --- ### 📝 Commits (2) - [`85b5ff7`](https://github.com/horizon-rust/horizon/commit/85b5ff729425c2d3b1b9f59ae9771d762a5f307f) Scale the view-blocking probe height with the player's scale - [`111081b`](https://github.com/horizon-rust/horizon/commit/111081b1bc2213e9eb26d0090001aefe254219b0) Merge main into fix/gameplay-world-scale ### 📊 Changes **2 files changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -1) 📝 `crates/horizon-client/src/game/render_tick.rs` (+5 -2) </details> ### 📄 Description ## What and why - Scale the view-blocking probe height with the player's scale: The block overlay (the dark stretched texture over the screen) probes eight points around the eye, 0.1 apart in height. Vanilla multiplies that by LivingEntity.getScale (LevelExtractor.getViewBlockingStateAndPos). Horizon used a fixed 0.1, so a player of scale 0.01, whose eye is 0.0162 above the feet, probed the ground block and got its overlay over the whole screen. Part of #3809 ## Self-check rustfmt on changed files; built by CI; not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:51 +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#5475
No description provided.