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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify config event posting logic (remove ConfigConfig) #76

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Technici4n
Copy link
Member

Events are not on the game layer component anymore, we can instantiate them directly from the config logic. 馃槈

postConfigEvent(ModConfigEvent.Reloading::new);
}

void postConfigEvent(Function<ModConfig, ? extends ModConfigEvent> constructor) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest making this synchronized for now as a stop-gap to prevent Loading and Reloading from firing concurrently. (Unless we have fixed that problem already.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I see the problem, and I have an idea to fix it. I'd like to leave it for another PR though.

@Technici4n Technici4n marked this pull request as draft January 19, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants