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 new NeoForge reload listeners #603

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

ellellie
Copy link

This change breaks mods that were using a null listenerId when calling ReloadListenerRegistry.register(...), as NeoForge now requires that all listeners are named.

Summary of changes:

  1. The ReloadListenerRegistry.register(PackType type, PreparableReloadListener listener) method has been removed.
  2. For the remaining register(...) methods, the ResourceLocation listenerId is no longer @Nullable.
  3. The ReloadListenerRegistryImpl for NeoForge now uses the appropriate events.
  4. Architectury API now depends on a minimum version of 21.4.84-beta.

See neoforged/NeoForge#1915 for more information.

@ellellie ellellie changed the base branch from 1.19.2 to 1.21.4 February 16, 2025 02:10
@shedaniel shedaniel merged commit a08cc1e into architectury:1.21.4 Feb 16, 2025
1 check passed
@shedaniel
Copy link
Member

Thanks!

ellellie added a commit to ellellie/RoughlyEnoughItems that referenced this pull request Feb 16, 2025
Needed to update `ReloadListenerRegistry.register` calls due to architectury/architectury-api#603
shedaniel pushed a commit to shedaniel/RoughlyEnoughItems that referenced this pull request Feb 16, 2025
* chore: update to Architectury API 15.0.2

Needed to update `ReloadListenerRegistry.register` calls due to architectury/architectury-api#603

* chore: add dependency on architectury >= 15.0.2 for the fabric platform.

* chore: depend on NeoForge >= 21.4.84-beta as well
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.

2 participants