Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix block outline rendering #4286

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

PepperCode1
Copy link
Member

@PepperCode1 PepperCode1 commented Dec 8, 2024

  • Move outline event invoker to before either normal or high contrast outlines are rendered
  • Remove outline layer reset, fixing high contrast outline being rendered with wrong layer
  • Pass translucent parameter as WorldRenderContext#translucentBlockOutline, usable in the BEFORE_BLOCK_OUTLINE and BLOCK_OUTLINE events

Fixes #4285.

- Move outline event invoker to before either normal or high contrast outlines are rendered
- Remove outline layer reset, fixing high contrast outline being rendered with wrong layer
- Pass translucent parameter to BEFORE_BLOCK_OUTLINE event
- Remove deprecated BlockOutlineContext#vertexConsumer
@PepperCode1 PepperCode1 added bug Something isn't working priority:high High priority PRs that need review and work now. Review these first. labels Dec 8, 2024
@PepperCode1 PepperCode1 requested a review from modmuss50 December 9, 2024 17:39
@apple502j
Copy link
Contributor

Was about to say I think it's fine to break this API now - however turns out the API is much more frequently used than I thought.

@PepperCode1 PepperCode1 requested a review from modmuss50 December 9, 2024 19:19
@modmuss50 modmuss50 added the merge me please Pull requests that are ready to merge label Dec 12, 2024
@modmuss50 modmuss50 merged commit b874120 into FabricMC:1.21.4 Dec 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working merge me please Pull requests that are ready to merge priority:high High priority PRs that need review and work now. Review these first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The High Contrast Block Outline is broken with Fabric API
4 participants