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

Change bloom layer to use mixin instead of enumHelper #2583

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MCTian-mi
Copy link
Contributor

@MCTian-mi MCTian-mi commented Aug 13, 2024

What

As the title says.

Implementation Details

Adds two mixins targeting BlockRenderLayer.class, BlockRenderPass.class and ChunkRenderPass.class, adding the bloom layer during initialization.

Outcome

This fixes issues with EnumMaps, like embeddedt/VintageFix#112 .
↑ it doesn't, after I cleaned up the workplace and run client again, weird. But ig this PR is still fine as a refactor.

Additional Information

I've also tried to get Nothirium patch using mixin, but I'm still waiting for auther's reply since it's gonna use some codes from Nothirium but it's ARR licenced.
The Nothirium compat now uses mixin as well. Thanks to @Meldexun for allowing me to use some of Nothirium code here!

For Vintagium I failed to get mixin work and idk why 😢.
↑ nvm I figured it out.

Potential Compatibility Issues

None that I can think of?

@MCTian-mi MCTian-mi requested a review from a team as a code owner August 13, 2024 04:31
@ALongStringOfNumbers ALongStringOfNumbers added the type: refactor Suggestion to refactor a section of code label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants