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

use @Accessor over accesswidener and more static fields #191

Open
wants to merge 2 commits into
base: Multiloader-1.20
Choose a base branch
from

Conversation

NicBOMB
Copy link

@NicBOMB NicBOMB commented Oct 9, 2023

2 examples of mixin extras usage are in MinecraftVRMixin and OptionsVRMixin respectively.
Cleanup of OptionsVRMixin also revealed the keymapping category injection could be separated, so KeyMappingVRMixin was added and the accesswidener reduced.
This implementation benefits the VivecraftVRMod class greatly, as it no longer needs an INSTANCE field at all.
All fields may be initialized statically.
This may also avoid an injection priority conflict with fabric according to @fayer3 .

@NicBOMB NicBOMB changed the base branch from Multiloader-1.20.2 to Multiloader-1.20 October 18, 2023 03:55
@NicBOMB NicBOMB changed the title add mixin extras use @Accessor over accesswidener and more static fields Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant