Player Activity View (0.0.0-beta.6)
Curse Maven Snippet
What's new
v0.0.0-beta.6 - Corner rounding capped
Bug-fix beta for Minecraft 1.21.1 / NeoForge 21.1.249. Follow-up to beta.5: the inventory mirror was still rounded off at the top and bottom, and this needs no config edit on your part.
Fix
-
The inventory looked rounded off at the top and bottom while the pause menu was already fine. The cause was the setting whose meaning changed in beta.5: when it went from “circle radius” to “corner rounding”, the shader applied it with no cap. The inventory panel maps to a 176×166 rectangle in the mirror target, i.e. half-extents of 88 and 83; a rounding of 83 on that leaves only about 10 px of straight top and bottom edge and curves the rest, which reads as an oval. Worse, server configs still hold the old default (112) because NeoForge does not rewrite existing values, so this was the state of every installation that had ever touched the option rather than a hypothetical.
The shader now caps the rounding at a quarter of the smaller half-extent:
cornerR = clamp(radius, 0.0, 0.25 * min(inner.x, inner.y)). Inventory (half-extents 88/83) tops out around 20 px, so the edges are straight with only a light rounding. Pause menu (full 128/128 target) tops out around 32 px, a softly rounded card with a straight top.
Because of the cap, the stale value heals itself: a saved 112 now behaves like about 20 with no config change. This rescues any server carrying the previous value, not just the ones already affected.
Notes
The setting's comment now documents the cap.
Beta. The Java side is verified by a clean build. The GLSL still cannot be validated here — shaders only compile when the game loads them. If the mirror comes out black or corrupted, look for ERROR compiling shader in the log. No dependency or loader version changes.
Inspired by WATUT (What Are They Up To) by Corosus. Independent codebase, no dependency on CoroUtil. Not affiliated with or endorsed by the original author.
JAR: player_activity_view-1.21.1-neoforge-21.1.249-0.0.0-beta.6.jar
This mod has no additional files

