Skip to content

Commit

Permalink
Use Forge's new simplified DisplayTest API
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintNinja committed Sep 16, 2024
1 parent f06de57 commit ba8e8ba
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 ba8e8ba

Please sign in to comment.