HUD editor box-select, glass edge fixes, blocked server bypass #3

Merged
Magnus-Krill merged 8 commits from main into main 2026-08-21 21:44:52 +00:00
Magnus-Krill commented 2026-08-06 19:19:06 +00:00 (Migrated from github.com)

Drag from empty space in the HUD editor to select multiple elements at once
and move them as a group. Single elements still snap to edges/center, groups
just clamp to the screen so they keep their spacing. Right-click on a
selected element resets the whole selection.

Also fixed the rounded corners looking chewed up: outlines had no
anti-aliasing, and glass panels without a captured blur (so anything drawn
in-game) fell back to tessellated geometry at a hardcoded opacity. Both go
through the SDF path now and respect the opacity slider. Toggle popup now
looks like the editor's hint chip.

Plus AddressCheckMixin, which makes Mojang's blocked server list allow
everything, so the client can connect to servers on the ban list.

Summary by CodeRabbit

  • New Features

    • HUD editor now supports multi-select, group dragging, rubber-band selection, and group reset.
    • Server address checks allow both resolved and unresolved addresses.
    • Added smoother, anti-aliased outlines for rounded UI elements.
  • UI Improvements

    • HUD colors, notifications, panels, nametags, and radar elements now follow the active glass theme.
    • Notifications feature taller glass-styled toasts with updated tinting, outlines, and accent colors.
    • Module names remain clearly readable regardless of enabled state.
  • Bug Fixes

    • Registry synchronization packets are handled correctly without triggering oversized-packet protection.
Drag from empty space in the HUD editor to select multiple elements at once and move them as a group. Single elements still snap to edges/center, groups just clamp to the screen so they keep their spacing. Right-click on a selected element resets the whole selection. Also fixed the rounded corners looking chewed up: outlines had no anti-aliasing, and glass panels without a captured blur (so anything drawn in-game) fell back to tessellated geometry at a hardcoded opacity. Both go through the SDF path now and respect the opacity slider. Toggle popup now looks like the editor's hint chip. Plus AddressCheckMixin, which makes Mojang's blocked server list allow everything, so the client can connect to servers on the ban list. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - HUD editor now supports multi-select, group dragging, rubber-band selection, and group reset. - Server address checks allow both resolved and unresolved addresses. - Added smoother, anti-aliased outlines for rounded UI elements. - **UI Improvements** - HUD colors, notifications, panels, nametags, and radar elements now follow the active glass theme. - Notifications feature taller glass-styled toasts with updated tinting, outlines, and accent colors. - Module names remain clearly readable regardless of enabled state. - **Bug Fixes** - Registry synchronization packets are handled correctly without triggering oversized-packet protection. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
coderabbitai[bot] commented 2026-08-06 19:19:24 +00:00 (Migrated from github.com)

Review Change Stack

Warning

Review limit reached

@Leonn170709, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 7 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 36745639-6835-4d02-9fcd-9c23426d6f1f

📥 Commits

Reviewing files that changed from the base of the PR and between b1d518651e and b00b222997.

📒 Files selected for processing (1)
  • src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java
📝 Walkthrough

Walkthrough

The change adds an address-check bypass, centralizes theme-driven HUD and notification colors, adds SDF glass rendering, supports grouped HUD editing, and exempts registry synchronization packets from serialized-size checks.

Changes

Address access

Layer / File(s) Summary
Address check bypass
src/main/java/net/blockhost/anarchyclient/mixin/AddressCheckMixin.java, src/main/resources/anarchyclient.mixins.json
The client replaces service-created address checks with an implementation that allows resolved and unresolved addresses. The mixin is registered in the client configuration.

Theme and rendering

Layer / File(s) Summary
Shared theme contract
src/main/java/net/blockhost/anarchyclient/ui/GlassTheme.java
GlassTheme is public. Theme tokens and accessors are exposed. Notification synchronization is removed.
Theme-driven HUD colors
src/main/java/net/blockhost/anarchyclient/module/impl/*.java, src/main/java/net/blockhost/anarchyclient/ui/ModulePanel.java
HUD text and accent colors use shared HudText and GlassTheme values. Module names consistently use the primary text color.
SDF glass rendering
src/main/java/net/blockhost/anarchyclient/rivet/AnarchyClientRenderPipelines.java, src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java, src/main/resources/assets/anarchyclient/shaders/core/sdf_outline.fsh
The renderer adds an SDF outline pipeline and shader. Thin uniform-radius outlines and glass fallback fills use SDF rendering.
Glass notification rendering
src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java
Notifications use live theme values, glass-panel rendering, shared insets, fixed outlines, and theme-colored text.

HUD editor

Layer / File(s) Summary
Selection intersection contract
src/main/java/net/blockhost/anarchyclient/ui/HudLayout.java, src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java
HudLayout.Element.intersects detects rectangle overlap. Tests cover enclosed, overlapping, edge-touching, and separate elements.
Grouped selection and movement
src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java, src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java
The editor supports rubber-band selection, grouped dragging, group reset, selection visuals, and screen-bound clamping. Tests cover grouped movement and oversized elements.

Packet handling

Layer / File(s) Summary
Registry synchronization exemption
src/main/java/net/blockhost/anarchyclient/module/impl/AntiExploitModule.java, src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java
Registry data and tag synchronization packets bypass serialized-size checks. Tests verify that unrelated packets are not classified as registry synchronization packets.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant HudEditorScreen
  participant HudLayoutElement
  User->>HudEditorScreen: drag empty space
  HudEditorScreen->>HudLayoutElement: test selection intersection
  HudLayoutElement-->>HudEditorScreen: return intersection result
  User->>HudEditorScreen: drag selected elements
  HudEditorScreen->>HudEditorScreen: clamp grouped positions

Suggested reviewers: alexprogrammerde

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: HUD box selection, glass rendering fixes, and the blocked server-list bypass.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

<!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/6b6t/AnarchyClient/pull/3?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- This is an auto-generated comment: rate limited by coderabbit.ai --> > [!WARNING] > ## Review limit reached > > `@Leonn170709`, you've reached your PR review limit, so we couldn't start this review. > > **Next review available in:** **7 minutes** > > Enable **[usage-based reviews](https://app.coderabbit.ai/settings/billing?tab=usage&orgId=cfafad3d-3537-4edb-a9eb-4a1692062131)** in Billing to review now. Otherwise, wait until the next included review is available. > You're only billed for reviews past your plan's rate limits ($0.25/file). > > <details> > <summary>How can I continue?</summary> > > After more reviews become available, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. > > To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. > > </details> > > > <details> > <summary>How do review limits work?</summary> > > CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. > > For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. > > Please refer [docs](https://docs.coderabbit.ai/management/plans#rate-limits) for additional details. > > </details> > > <details> > <summary>Review details</summary> > > <details> > <summary>⚙️ Run configuration</summary> > > **Configuration used**: defaults > > **Review profile**: CHILL > > **Plan**: Pro Plus > > **Run ID**: `36745639-6835-4d02-9fcd-9c23426d6f1f` > > </details> > > <details> > <summary>📥 Commits</summary> > > Reviewing files that changed from the base of the PR and between b1d518651e45e16b2184ecdcdc4653b37f3a8e8f and b00b2229979bb93cae95a387033743c18ed2731d. > > </details> > > <details> > <summary>📒 Files selected for processing (1)</summary> > > * `src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java` > > </details> > > </details> <!-- end of auto-generated comment: rate limited by coderabbit.ai --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The change adds an address-check bypass, centralizes theme-driven HUD and notification colors, adds SDF glass rendering, supports grouped HUD editing, and exempts registry synchronization packets from serialized-size checks. ### Changes **Address access** |Layer / File(s)|Summary| |---|---| |**Address check bypass** <br> `src/main/java/net/blockhost/anarchyclient/mixin/AddressCheckMixin.java`, `src/main/resources/anarchyclient.mixins.json`|The client replaces service-created address checks with an implementation that allows resolved and unresolved addresses. The mixin is registered in the client configuration.| **Theme and rendering** |Layer / File(s)|Summary| |---|---| |**Shared theme contract** <br> `src/main/java/net/blockhost/anarchyclient/ui/GlassTheme.java`|`GlassTheme` is public. Theme tokens and accessors are exposed. Notification synchronization is removed.| |**Theme-driven HUD colors** <br> `src/main/java/net/blockhost/anarchyclient/module/impl/*.java`, `src/main/java/net/blockhost/anarchyclient/ui/ModulePanel.java`|HUD text and accent colors use shared `HudText` and `GlassTheme` values. Module names consistently use the primary text color.| |**SDF glass rendering** <br> `src/main/java/net/blockhost/anarchyclient/rivet/AnarchyClientRenderPipelines.java`, `src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java`, `src/main/resources/assets/anarchyclient/shaders/core/sdf_outline.fsh`|The renderer adds an SDF outline pipeline and shader. Thin uniform-radius outlines and glass fallback fills use SDF rendering.| |**Glass notification rendering** <br> `src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java`|Notifications use live theme values, glass-panel rendering, shared insets, fixed outlines, and theme-colored text.| **HUD editor** |Layer / File(s)|Summary| |---|---| |**Selection intersection contract** <br> `src/main/java/net/blockhost/anarchyclient/ui/HudLayout.java`, `src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java`|`HudLayout.Element.intersects` detects rectangle overlap. Tests cover enclosed, overlapping, edge-touching, and separate elements.| |**Grouped selection and movement** <br> `src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java`, `src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java`|The editor supports rubber-band selection, grouped dragging, group reset, selection visuals, and screen-bound clamping. Tests cover grouped movement and oversized elements.| **Packet handling** |Layer / File(s)|Summary| |---|---| |**Registry synchronization exemption** <br> `src/main/java/net/blockhost/anarchyclient/module/impl/AntiExploitModule.java`, `src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java`|Registry data and tag synchronization packets bypass serialized-size checks. Tests verify that unrelated packets are not classified as registry synchronization packets.| **Estimated code review effort:** 4 (Complex) | ~60 minutes ### Sequence Diagram(s) ```mermaid sequenceDiagram participant User participant HudEditorScreen participant HudLayoutElement User->>HudEditorScreen: drag empty space HudEditorScreen->>HudLayoutElement: test selection intersection HudLayoutElement-->>HudEditorScreen: return intersection result User->>HudEditorScreen: drag selected elements HudEditorScreen->>HudEditorScreen: clamp grouped positions ``` **Suggested reviewers:** `alexprogrammerde` </details> <!-- walkthrough_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :------------------------------------------------------------------------------------ | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :--------------------------------------------------------------------------------------------------------------------------- | | Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. | | Title check | ✅ Passed | The title clearly summarizes the main changes: HUD box selection, glass rendering fixes, and the blocked server-list bypass. | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- finishing_touch_checkbox_start --> <details> <summary>✨ Finishing Touches</summary> <details> <summary>🧪 Generate unit tests (beta)</summary> - [ ] <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests </details> </details> <!-- finishing_touch_checkbox_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
coderabbitai[bot] (Migrated from github.com) reviewed 2026-08-06 19:23:09 +00:00
coderabbitai[bot] (Migrated from github.com) left a comment

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java`:
- Around line 311-315: Update the uniform-radius branch in Blaze3DRenderer so
submitSdfGrid does not receive outline widths that its SDF render contract
cannot represent. Restrict the branch to the fixed sdf_outline width, or extend
submitSdfGrid and the associated render state/shader contract to propagate
outlineWidth while preserving the requested value.

In `@src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java`:
- Around line 229-242: Update the group-drag path in HudEditorScreen around
dragOffsets and HudLayout.move so multi-element selections calculate their
combined bounds, clamp the proposed group top-left once, and apply one shared
translation to every selected element; retain snapping for single-element drags.
Add a regression test that drags two separated elements against each screen edge
and verifies their spacing remains unchanged.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5da4aeb0-f3e5-42a9-800f-3d2131fdc729

📥 Commits

Reviewing files that changed from the base of the PR and between a165e5ba44 and 8a994f5ae7.

⛔ Files ignored due to path filters (1)
  • assets/demo.png is excluded by !**/*.png
📒 Files selected for processing (22)
  • src/main/java/net/blockhost/anarchyclient/mixin/AddressCheckMixin.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/ActiveModulesHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/CoordinatesHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/HoleHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/HudElementModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/HudText.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/InventoryHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/ItemHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/MapHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/ModuleInfoHudModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/NametagsModule.java
  • src/main/java/net/blockhost/anarchyclient/module/impl/RadarHudModule.java
  • src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java
  • src/main/java/net/blockhost/anarchyclient/rivet/AnarchyClientRenderPipelines.java
  • src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java
  • src/main/java/net/blockhost/anarchyclient/ui/GlassTheme.java
  • src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java
  • src/main/java/net/blockhost/anarchyclient/ui/HudLayout.java
  • src/main/java/net/blockhost/anarchyclient/ui/ModulePanel.java
  • src/main/resources/anarchyclient.mixins.json
  • src/main/resources/assets/anarchyclient/shaders/core/sdf_outline.fsh
  • src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java
**Actionable comments posted: 2** <details> <summary>🤖 Prompt for all review comments with AI agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. Inline comments: In `@src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java`: - Around line 311-315: Update the uniform-radius branch in Blaze3DRenderer so submitSdfGrid does not receive outline widths that its SDF render contract cannot represent. Restrict the branch to the fixed sdf_outline width, or extend submitSdfGrid and the associated render state/shader contract to propagate outlineWidth while preserving the requested value. In `@src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java`: - Around line 229-242: Update the group-drag path in HudEditorScreen around dragOffsets and HudLayout.move so multi-element selections calculate their combined bounds, clamp the proposed group top-left once, and apply one shared translation to every selected element; retain snapping for single-element drags. Add a regression test that drags two separated elements against each screen edge and verifies their spacing remains unchanged. ``` </details> <details> <summary>🪄 Autofix</summary> Fix all unresolved CodeRabbit comments on this PR: - [ ] <!-- {"checkboxId": "4b0d0e0a-96d7-4f10-b296-3a18ea78f0b9"} --> Push a commit to this branch (recommended) - [ ] <!-- {"checkboxId": "ff5b1114-7d8c-49e6-8ac1-43f82af23a33"} --> Create a new PR with the fixes </details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: defaults **Review profile**: CHILL **Plan**: Pro Plus **Run ID**: `5da4aeb0-f3e5-42a9-800f-3d2131fdc729` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between a165e5ba447c9ebfaf0319472b4987905bcad23f and 8a994f5ae73ce87ec1a8cda5ecec4d239b27313a. </details> <details> <summary>⛔ Files ignored due to path filters (1)</summary> * `assets/demo.png` is excluded by `!**/*.png` </details> <details> <summary>📒 Files selected for processing (22)</summary> * `src/main/java/net/blockhost/anarchyclient/mixin/AddressCheckMixin.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/ActiveModulesHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/CoordinatesHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/HoleHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/HudElementModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/HudText.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/InventoryHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/ItemHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/MapHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/ModuleInfoHudModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/NametagsModule.java` * `src/main/java/net/blockhost/anarchyclient/module/impl/RadarHudModule.java` * `src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java` * `src/main/java/net/blockhost/anarchyclient/rivet/AnarchyClientRenderPipelines.java` * `src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java` * `src/main/java/net/blockhost/anarchyclient/ui/GlassTheme.java` * `src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java` * `src/main/java/net/blockhost/anarchyclient/ui/HudLayout.java` * `src/main/java/net/blockhost/anarchyclient/ui/ModulePanel.java` * `src/main/resources/anarchyclient.mixins.json` * `src/main/resources/assets/anarchyclient/shaders/core/sdf_outline.fsh` * `src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java` </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
@ -304,6 +308,14 @@ public final class Blaze3DRenderer extends CheckedRenderer {
protected void doOutlineRoundedRect(final float x, final float y, final float width, final float height,
coderabbitai[bot] (Migrated from github.com) commented 2026-08-06 19:23:09 +00:00

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Preserve the requested outline width.

The SDF submission does not pass outlineWidth to the render state or shader. Therefore, every width accepted by this branch uses the same SDF ring. A 0.5F or 1.25F outline cannot render at its requested width.

Restrict this path to the fixed width that sdf_outline renders, or add outline width to the SDF render contract.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java` around
lines 311 - 315, Update the uniform-radius branch in Blaze3DRenderer so
submitSdfGrid does not receive outline widths that its SDF render contract
cannot represent. Restrict the branch to the fixed sdf_outline width, or extend
submitSdfGrid and the associated render state/shader contract to propagate
outlineWidth while preserving the requested value.

✅ Addressed in commits e1af7cc to ec4dc4c

_🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_ **Preserve the requested outline width.** The SDF submission does not pass `outlineWidth` to the render state or shader. Therefore, every width accepted by this branch uses the same SDF ring. A `0.5F` or `1.25F` outline cannot render at its requested width. Restrict this path to the fixed width that `sdf_outline` renders, or add outline width to the SDF render contract. <details> <summary>🤖 Prompt for AI Agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java` around lines 311 - 315, Update the uniform-radius branch in Blaze3DRenderer so submitSdfGrid does not receive outline widths that its SDF render contract cannot represent. Restrict the branch to the fixed sdf_outline width, or extend submitSdfGrid and the associated render state/shader contract to propagate outlineWidth while preserving the requested value. ``` </details> <!-- fingerprinting:phantom:medusa:tapir --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:cc5b944aca4947fd275492da --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commits e1af7cc to ec4dc4c
@ -136,44 +174,139 @@ public final class HudEditorScreen extends Screen {
public boolean mouseClicked(final MouseButtonEvent event, final boolean doubleClick) {
coderabbitai[bot] (Migrated from github.com) commented 2026-08-06 19:23:09 +00:00

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Clamp the group with one shared translation.

Lines 240-242 clamp each element independently. When a selected element reaches an edge before another element, its position stops while the other element continues. The group spacing then changes.

Calculate the selected group bounds. Clamp the proposed group top-left once. Apply the resulting shared delta to every selected element. Add a regression test that drags two separated elements into each screen edge and verifies that their distance is unchanged.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java` around
lines 229 - 242, Update the group-drag path in HudEditorScreen around
dragOffsets and HudLayout.move so multi-element selections calculate their
combined bounds, clamp the proposed group top-left once, and apply one shared
translation to every selected element; retain snapping for single-element drags.
Add a regression test that drags two separated elements against each screen edge
and verifies their spacing remains unchanged.

✅ Addressed in commits e1af7cc to ec4dc4c

_🎯 Functional Correctness_ | _🟠 Major_ | _🏗️ Heavy lift_ **Clamp the group with one shared translation.** Lines 240-242 clamp each element independently. When a selected element reaches an edge before another element, its position stops while the other element continues. The group spacing then changes. Calculate the selected group bounds. Clamp the proposed group top-left once. Apply the resulting shared delta to every selected element. Add a regression test that drags two separated elements into each screen edge and verifies that their distance is unchanged. <details> <summary>🤖 Prompt for AI Agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java` around lines 229 - 242, Update the group-drag path in HudEditorScreen around dragOffsets and HudLayout.move so multi-element selections calculate their combined bounds, clamp the proposed group top-left once, and apply one shared translation to every selected element; retain snapping for single-element drags. Add a regression test that drags two separated elements against each screen edge and verifies their spacing remains unchanged. ``` </details> <!-- fingerprinting:phantom:medusa:tapir --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:f8dc3ab70a5a2dacbb5de5b7 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commits e1af7cc to ec4dc4c
coderabbitai[bot] (Migrated from github.com) reviewed 2026-08-06 19:57:46 +00:00
coderabbitai[bot] (Migrated from github.com) left a comment

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java`:
- Line 25: Update the toast rendering flow to apply the current alpha to every
visual element: pass fade(GlassTheme.glass(), alpha) when constructing
GlassPanelCommand, and pass fade(OUTLINE, alpha) to outlineRoundedRect near the
existing text fade logic. Keep the existing alpha-driven fade behavior and
layout unchanged.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 33d5263a-a292-427e-a7f4-2e5db76fe212

📥 Commits

Reviewing files that changed from the base of the PR and between 8a994f5ae7 and ec4dc4c490.

📒 Files selected for processing (4)
  • src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java
  • src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java
  • src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java
  • src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java
  • src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java
  • src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java
**Actionable comments posted: 1** <details> <summary>🤖 Prompt for all review comments with AI agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. Inline comments: In `@src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java`: - Line 25: Update the toast rendering flow to apply the current alpha to every visual element: pass fade(GlassTheme.glass(), alpha) when constructing GlassPanelCommand, and pass fade(OUTLINE, alpha) to outlineRoundedRect near the existing text fade logic. Keep the existing alpha-driven fade behavior and layout unchanged. ``` </details> <details> <summary>🪄 Autofix</summary> Fix all unresolved CodeRabbit comments on this PR: - [ ] <!-- {"checkboxId": "4b0d0e0a-96d7-4f10-b296-3a18ea78f0b9"} --> Push a commit to this branch (recommended) - [ ] <!-- {"checkboxId": "ff5b1114-7d8c-49e6-8ac1-43f82af23a33"} --> Create a new PR with the fixes </details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: defaults **Review profile**: CHILL **Plan**: Pro Plus **Run ID**: `33d5263a-a292-427e-a7f4-2e5db76fe212` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 8a994f5ae73ce87ec1a8cda5ecec4d239b27313a and ec4dc4c490f65ec96bbfb0d93fa690585817ad8f. </details> <details> <summary>📒 Files selected for processing (4)</summary> * `src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java` * `src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java` * `src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java` * `src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java` </details> <details> <summary>🚧 Files skipped from review as they are similar to previous changes (3)</summary> * src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java * src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java * src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
@ -35,4 +33,4 @@
private static final List<Toast> TOASTS = new ArrayList<>();
private static boolean enabled = true;
private static Mode mode = Mode.POPUP;
coderabbitai[bot] (Migrated from github.com) commented 2026-08-06 19:57:46 +00:00

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Apply the toast fade to the panel and outline.

The toast alpha is used only for GlassTheme.TEXT. GlassPanelCommand receives the unfaded GlassTheme.glass(), and Line 146 uses the fixed OUTLINE. During fade-in and fade-out, the panel and border remain visible while the text fades.

Pass fade(GlassTheme.glass(), alpha) to GlassPanelCommand and fade(OUTLINE, alpha) to outlineRoundedRect.

Proposed fix
- renderer.custom(new GlassPanelCommand(x, y, width, ROW_HEIGHT, radius, GlassTheme.glass()));
+ renderer.custom(new GlassPanelCommand(x, y, width, ROW_HEIGHT, radius,
+         fade(GlassTheme.glass(), alpha)));

- renderer.outlineRoundedRect(x, y, width, ROW_HEIGHT, radius, 1F, OUTLINE);
+ renderer.outlineRoundedRect(x, y, width, ROW_HEIGHT, radius, 1F, fade(OUTLINE, alpha));

Also applies to: 143-148

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java`
at line 25, Update the toast rendering flow to apply the current alpha to every
visual element: pass fade(GlassTheme.glass(), alpha) when constructing
GlassPanelCommand, and pass fade(OUTLINE, alpha) to outlineRoundedRect near the
existing text fade logic. Keep the existing alpha-driven fade behavior and
layout unchanged.

✅ Addressed in commit 7c411c6

_🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_ **Apply the toast fade to the panel and outline.** The toast `alpha` is used only for `GlassTheme.TEXT`. `GlassPanelCommand` receives the unfaded `GlassTheme.glass()`, and Line 146 uses the fixed `OUTLINE`. During fade-in and fade-out, the panel and border remain visible while the text fades. Pass `fade(GlassTheme.glass(), alpha)` to `GlassPanelCommand` and `fade(OUTLINE, alpha)` to `outlineRoundedRect`. <details> <summary>Proposed fix</summary> ```diff - renderer.custom(new GlassPanelCommand(x, y, width, ROW_HEIGHT, radius, GlassTheme.glass())); + renderer.custom(new GlassPanelCommand(x, y, width, ROW_HEIGHT, radius, + fade(GlassTheme.glass(), alpha))); - renderer.outlineRoundedRect(x, y, width, ROW_HEIGHT, radius, 1F, OUTLINE); + renderer.outlineRoundedRect(x, y, width, ROW_HEIGHT, radius, 1F, fade(OUTLINE, alpha)); ``` </details> Also applies to: 143-148 <details> <summary>🤖 Prompt for AI Agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.java` at line 25, Update the toast rendering flow to apply the current alpha to every visual element: pass fade(GlassTheme.glass(), alpha) when constructing GlassPanelCommand, and pass fade(OUTLINE, alpha) to outlineRoundedRect near the existing text fade logic. Keep the existing alpha-driven fade behavior and layout unchanged. ``` </details> <!-- fingerprinting:phantom:poseidon:caracal --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:878ada7a7669a3bafa33d174 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 7c411c6
coderabbitai[bot] (Migrated from github.com) reviewed 2026-08-06 20:30:44 +00:00
coderabbitai[bot] (Migrated from github.com) left a comment
🧹 Nitpick comments (1)
src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java (1)

58-67: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Test the production exemption path.

The test currently validates only isRegistrySync. It would still pass if exploitReason rejected oversized registry or tag packets. Call exploitReason with a deliberately small maxPacketString and assert null for both synchronization packets. Also assert that an oversized non-registry packet remains rejected.

🧪 Proposed test coverage
+        // Use the constructed packets as variables.
+        assertNull(AntiExploitModule.exploitReason(registryPacket, 1, 64));
+        assertNull(AntiExploitModule.exploitReason(tagsPacket, 1, 64));
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java`
around lines 58 - 67, Extend exploitCheckNeverDropsRegistrySync to exercise
AntiExploitModule.exploitReason with a deliberately small maxPacketString:
assert null for both the registry-data and update-tags synchronization packets,
and assert a non-null rejection reason for an oversized non-registry packet.
Keep the existing isRegistrySync assertions intact.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In
`@src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java`:
- Around line 58-67: Extend exploitCheckNeverDropsRegistrySync to exercise
AntiExploitModule.exploitReason with a deliberately small maxPacketString:
assert null for both the registry-data and update-tags synchronization packets,
and assert a non-null rejection reason for an oversized non-registry packet.
Keep the existing isRegistrySync assertions intact.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 562ea8c2-40df-48d0-8f46-cde7ed8a3cef

📥 Commits

Reviewing files that changed from the base of the PR and between 7c411c6874 and b1d518651e.

📒 Files selected for processing (2)
  • src/main/java/net/blockhost/anarchyclient/module/impl/AntiExploitModule.java
  • src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java
<details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java (1)</summary><blockquote> `58-67`: _🎯 Functional Correctness_ | _🔵 Trivial_ | _⚡ Quick win_ **Test the production exemption path.** The test currently validates only `isRegistrySync`. It would still pass if `exploitReason` rejected oversized registry or tag packets. Call `exploitReason` with a deliberately small `maxPacketString` and assert `null` for both synchronization packets. Also assert that an oversized non-registry packet remains rejected. <details> <summary>🧪 Proposed test coverage</summary> ```diff + // Use the constructed packets as variables. + assertNull(AntiExploitModule.exploitReason(registryPacket, 1, 64)); + assertNull(AntiExploitModule.exploitReason(tagsPacket, 1, 64)); ``` </details> <details> <summary>🤖 Prompt for AI Agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java` around lines 58 - 67, Extend exploitCheckNeverDropsRegistrySync to exercise AntiExploitModule.exploitReason with a deliberately small maxPacketString: assert null for both the registry-data and update-tags synchronization packets, and assert a non-null rejection reason for an oversized non-registry packet. Keep the existing isRegistrySync assertions intact. ``` </details> <!-- cr-comment:v1:0e5f5a095bffb8584b95b34c --> </blockquote></details> </blockquote></details> <details> <summary>🤖 Prompt for all review comments with AI agents</summary> ``` Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. Nitpick comments: In `@src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java`: - Around line 58-67: Extend exploitCheckNeverDropsRegistrySync to exercise AntiExploitModule.exploitReason with a deliberately small maxPacketString: assert null for both the registry-data and update-tags synchronization packets, and assert a non-null rejection reason for an oversized non-registry packet. Keep the existing isRegistrySync assertions intact. ``` </details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: defaults **Review profile**: CHILL **Plan**: Pro Plus **Run ID**: `562ea8c2-40df-48d0-8f46-cde7ed8a3cef` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 7c411c687420d06039a9c3177b6b8c25a406d44e and b1d518651e45e16b2184ecdcdc4653b37f3a8e8f. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `src/main/java/net/blockhost/anarchyclient/module/impl/AntiExploitModule.java` * `src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java` </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
Sign in to join this conversation.
No description provided.