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

Support event priorities for events posted via ModLoader #27

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

Technici4n
Copy link
Member

To support this we need to make a few changes to ModContainer. The easiest way to handle this going forward is to ask language providers to give direct access to the event bus. I made it public because there are some valid use cases of it. (I think @shedaniel would like this for architectury, for example). The bus is nullable because it is optional, but not java Optional because I don't want to allocate for each call.

Tested in neoforgedev.

@Technici4n Technici4n merged commit da93135 into neoforged:main Nov 2, 2023
1 check passed
@Technici4n Technici4n deleted the event-priority-support branch November 2, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant