Skip to content

Commit

Permalink
Add system property to force disable mod update checks for dev time.
Browse files Browse the repository at this point in the history
  • Loading branch information
covers1624 committed Nov 12, 2023
1 parent 4245637 commit fa868eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/codechicken/lib/CodeChickenLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit fa868eb

Please sign in to comment.