diff --git a/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/ModuleEntryPoint.java b/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/ModuleEntryPoint.java index a579d7506..cdc9d2b9f 100644 --- a/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/ModuleEntryPoint.java +++ b/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/ModuleEntryPoint.java @@ -5,7 +5,7 @@ public class ModuleEntryPoint { - private static final boolean enabled = new ConfigSystem.ConfigAccessor() + public static final boolean enabled = new ConfigSystem.ConfigAccessor() .key("clientSideConfig.modifyMaxVDConfig.enabled") .comment("Whether to modify maximum view distance") .incompatibleMod("bobby", "*") diff --git a/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/common/UncapVDInitializer.java b/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/common/UncapVDInitializer.java index c24b56477..ffa791521 100644 --- a/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/common/UncapVDInitializer.java +++ b/c2me-client-uncapvd/src/main/java/com/ishland/c2me/client/uncapvd/common/UncapVDInitializer.java @@ -1,13 +1,14 @@ package com.ishland.c2me.client.uncapvd.common; import com.ishland.c2me.base.common.config.ModStatuses; +import com.ishland.c2me.client.uncapvd.ModuleEntryPoint; import net.fabricmc.api.ClientModInitializer; public class UncapVDInitializer implements ClientModInitializer { @Override public void onInitializeClient() { - if (ModStatuses.fabric_networking_api_v1) { + if (ModuleEntryPoint.enabled && ModStatuses.fabric_networking_api_v1) { ClientExtNetworking.registerListeners(); } } diff --git a/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/common/NoTickVDInitializer.java b/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/common/NoTickVDInitializer.java index f5e21ae4c..e8383e1ea 100644 --- a/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/common/NoTickVDInitializer.java +++ b/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/common/NoTickVDInitializer.java @@ -1,12 +1,13 @@ package com.ishland.c2me.notickvd.common; import com.ishland.c2me.base.common.config.ModStatuses; +import com.ishland.c2me.notickvd.ModuleEntryPoint; import net.fabricmc.api.ModInitializer; public class NoTickVDInitializer implements ModInitializer { @Override public void onInitialize() { - if (Config.enableExtRenderDistanceProtocol && ModStatuses.fabric_networking_api_v1) { + if (ModuleEntryPoint.enabled && Config.enableExtRenderDistanceProtocol && ModStatuses.fabric_networking_api_v1) { ServerExtNetworking.registerListeners(); } }