From d19ce1b85a8ee3e4e9e751edb3da6de82f330ea0 Mon Sep 17 00:00:00 2001 From: TexTrue <65154269+TexBlock@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:17:04 +0800 Subject: [PATCH] fix --- .../artisan/azusaconfig/neoforge/AzusaConfigModNeoForge.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neoforge/src/main/java/ho/artisan/azusaconfig/neoforge/AzusaConfigModNeoForge.java b/neoforge/src/main/java/ho/artisan/azusaconfig/neoforge/AzusaConfigModNeoForge.java index 0a27bd5..c002ecc 100644 --- a/neoforge/src/main/java/ho/artisan/azusaconfig/neoforge/AzusaConfigModNeoForge.java +++ b/neoforge/src/main/java/ho/artisan/azusaconfig/neoforge/AzusaConfigModNeoForge.java @@ -2,11 +2,15 @@ import ho.artisan.azusaconfig.AzusaConfigMod; import ho.artisan.azusaconfig.neoforge.impl.entrypoint.EntrypointStorage; +import net.neoforged.fml.IExtensionPoint; +import net.neoforged.fml.ModLoadingContext; import net.neoforged.fml.common.Mod; +import net.neoforged.neoforge.network.NetworkConstants; @Mod(AzusaConfigMod.MOD_ID) public class AzusaConfigModNeoForge { public AzusaConfigModNeoForge() { + ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (a, b) -> true)); EntrypointStorage.loadAll(); AzusaConfigMod.init(); }