Skip to content

Commit

Permalink
Use Forge's new simplified DisplayTest API (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintNinja authored Sep 22, 2024
1 parent f06de57 commit dfe500e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public ForgeSparkMod() {
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientInit);
MinecraftForge.EVENT_BUS.register(this);

ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> IExtensionPoint.DisplayTest.IGNORESERVERONLY, (a, b) -> true));
ModLoadingContext.get().registerDisplayTest(IExtensionPoint.DisplayTest.IGNORE_ALL_VERSION);
}

public String getVersion() {
Expand Down

0 comments on commit dfe500e

Please sign in to comment.