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

Add Forge and NeoForge support #164

Merged
merged 21 commits into from
Feb 17, 2024
Merged

Conversation

LostLuma
Copy link
Collaborator

@LostLuma LostLuma commented Feb 17, 2024

Add support for Forge and NeoForge using Architectury Loom.

Currently their NeoForge support is in beta, and it is either somewhat broken or I have messed something up, as using the Mixin @Shadow and @Overwrite annotations in a common module mixin will fail to remap properly when building the NeoForge module, and subsequently crash Minecraft.
I have worked around this by replacing all uses of the @Shadow annotation with access wideners, and replacing the only use of an @Overwrite with two individual injections (see commit). I plan to revert this in the future whenever it is possible.

There's still a lot that can be improved about this at a later date, however I'd like to focus on something else for now and get this out the door. As it stands this works on all four platforms on Minecraft 1.20.0 to 1.20.4 (and I'll backport outside of the PR).

@LostLuma
Copy link
Collaborator Author

Well I'm going to merge this as-is without waiting for anyone to look over it right now because I have some other unrelated bug fixes I'd like to do, and I'd like to get all of this stuff done today / this weekend.

@LostLuma LostLuma merged commit 2eede57 into juliand665:main Feb 17, 2024
4 checks passed
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