Skip to content

Commit

Permalink
Fix registration system
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jan 11, 2024
1 parent dda86cb commit 044de3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public ModEntrypoint() {
if (ModList.get().isLoaded("embeddium")) {
EmbeddiumCompat.addCompat(modBus);
}

for (var registry : ModPlatform.REGISTRIES.values()) {
registry.register(modBus);
}
}

private void onChunkSend(ChunkWatchEvent.Watch event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public final class ModPlatform implements Services.Platform {
public static final Capability<WeatherChunkData> WEATHER_CHUNK_DATA = CapabilityManager.get(new CapabilityToken<>(){});
public static final ResourceLocation WEATHER_CHUNK_DATA_LOCATION = Constants.id("weather_status");

private static final Map<Pair<String, ResourceKey<? extends Registry<?>>>, DeferredRegister<?>> REGISTRIES = new HashMap<>();
static final Map<Pair<String, ResourceKey<? extends Registry<?>>>, DeferredRegister<?>> REGISTRIES = new HashMap<>();

@Override
public WeatherChunkData getChunkData(LevelChunk chunk) {
Expand Down

0 comments on commit 044de3a

Please sign in to comment.