From ba8e8ba06db29e703cb88025b716f06093e53746 Mon Sep 17 00:00:00 2001 From: Paint_Ninja Date: Mon, 16 Sep 2024 13:23:06 +0100 Subject: [PATCH] Use Forge's new simplified DisplayTest API --- .../src/main/java/me/lucko/spark/forge/ForgeSparkMod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spark-forge/src/main/java/me/lucko/spark/forge/ForgeSparkMod.java b/spark-forge/src/main/java/me/lucko/spark/forge/ForgeSparkMod.java index 44625889..1a7b8e17 100644 --- a/spark-forge/src/main/java/me/lucko/spark/forge/ForgeSparkMod.java +++ b/spark-forge/src/main/java/me/lucko/spark/forge/ForgeSparkMod.java @@ -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() {