Skip to content

Commit

Permalink
chore: Update to add namespaces to ReloadListenerRegistry calls (#1828)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ellellie authored Feb 16, 2025
1 parent 93a46fc commit ce2de8d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
}
},
"depends": {
"minecraft": "~1.21-"
"minecraft": "~1.21-",
"architectury": ">=15.0.2"
}
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ supported_version=1.21.4
minecraft_version=1.21.4
platforms=fabric,neoforge
forge_version=49.1.10
neoforge_version=21.4.20-beta
neoforge_version=21.4.84-beta
neoforge_pr=
fabricloader_version=0.16.7
cloth_config_version=17.0.144
modmenu_version=11.0.0-rc.2
fabric_api=0.112.0+1.21.4
architectury_version=15.0.1
architectury_version=15.0.2
api_exculde=
#api_include=me.shedaniel.cloth:cloth-events,me.shedaniel.cloth:config-2,me.sargunvohra.mcmods:autoconfig1u,org.jetbrains:annotations,net.fabricmc.fabric-api:fabric
4 changes: 2 additions & 2 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To allow players to view items and recipes.
[[dependencies.roughlyenoughitems]]
modId = "architectury"
type = "required"
versionRange = "[8,)"
versionRange = "[15.0.2,)"
ordering = "NONE"
side = "BOTH"

Expand All @@ -30,7 +30,7 @@ side = "BOTH"
[[dependencies.roughlyenoughitems]]
modId = "neoforge"
type = "required"
versionRange = "[21.0,)"
versionRange = "[21.4.84-beta,)"
ordering = "NONE"
side = "BOTH"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void onInitialize() {
if (GameInstance.getServer() == null) return;
ReloadManagerImpl.reloadPlugins(null, ReloadInterruptionContext.ofNever());
}, executor2);
});
}, ResourceLocation.fromNamespaceAndPath("roughlyenoughitems", "reload_plugins"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public Sprite(float u0, float u1, float v0, float v1) {
static {
ReloadListenerRegistry.register(PackType.CLIENT_RESOURCES, (barrier, resourceManager, preparationExecutor, reloadExecutor) -> {
return barrier.wait(Unit.INSTANCE).thenRunAsync(CachedEntryListRender::refresh, reloadExecutor);
});
}, ResourceLocation.fromNamespaceAndPath("roughlyenoughitems", "cached_entries"));
}

public static void refresh() {
Expand Down

0 comments on commit ce2de8d

Please sign in to comment.