diff --git a/src/main/java/codechicken/lib/CodeChickenLib.java b/src/main/java/codechicken/lib/CodeChickenLib.java index 37ae617f..f2eaed20 100644 --- a/src/main/java/codechicken/lib/CodeChickenLib.java +++ b/src/main/java/codechicken/lib/CodeChickenLib.java @@ -9,6 +9,7 @@ import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.fml.DistExecutor; import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.loading.FMLConfig; import java.nio.file.Paths; @@ -18,6 +19,12 @@ @Mod (CodeChickenLib.MOD_ID) public class CodeChickenLib { + static { + if (Boolean.getBoolean("ccl.noModUpdateChecking")) { + FMLConfig.updateConfig(FMLConfig.ConfigValue.VERSION_CHECK, false); + } + } + public static final String MOD_ID = "codechickenlib"; public static ConfigCategory config;