Skip to content

Commit

Permalink
Fix use of Fabric internals. Fixes #6.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Nov 16, 2023
1 parent 31ecadd commit c3f0b88
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import li.cil.manual.api.platform.FabricManualInitializer;
import li.cil.manual.client.ClientSetup;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.loader.impl.entrypoint.EntrypointUtils;
import net.fabricmc.loader.api.FabricLoader;

public final class MarkdownManualFabric implements ClientModInitializer {
@Override
public void onInitializeClient() {
ClientSetup.initialize();

EntrypointUtils.invoke("markdown_manual:registration", FabricManualInitializer.class, FabricManualInitializer::registerManualObjects);
FabricLoader.getInstance()
.getEntrypoints("markdown_manual:registration", FabricManualInitializer.class)
.forEach(FabricManualInitializer::registerManualObjects);
}
}

0 comments on commit c3f0b88

Please sign in to comment.