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

Fix RegisterRegistryEvent.GameScoped being fired too soon #4062

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

Yeregorix
Copy link
Member

@Yeregorix Yeregorix commented Jun 25, 2024

Forge constructs mods after bootstrapping registries. That's why we shouldn't fire events during SpongeLifecycle#establishEarlyGlobalRegistries and SpongeLifecycle#finalizeEarlyGlobalRegistries.

RegisterRegistryValueEvent.BuiltIn is fired in SpongeLifecycle#finalizeEarlyGlobalRegistries. I'm not sure how we could fix that because vanilla registries are frozen before mods are constructed.

@Yeregorix Yeregorix merged commit 625fba4 into api-11 Jun 25, 2024
10 checks passed
@Yeregorix Yeregorix deleted the fix/early-registry-events branch June 25, 2024 18:22
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