Config option implemented

This commit is contained in:
ichttt 2019-01-27 22:02:58 +01:00
parent ad32b01d85
commit 3eac9c536b

View file

@ -21,6 +21,7 @@ package net.minecraftforge.fml;
import com.google.common.io.ByteStreams;
import com.google.gson.Gson;
import net.minecraftforge.common.ForgeConfig;
import net.minecraftforge.fml.loading.moddiscovery.ModInfo;
import net.minecraftforge.forgespi.language.IModInfo;
import net.minecraftforge.versions.mcp.MCPVersion;
@ -130,11 +131,11 @@ public class VersionChecker
@Override
public void run()
{
// if (!ForgeModContainer.getConfig().get(ForgeModContainer.VERSION_CHECK_CAT, "Global", true).getBoolean())
// {
// log.info("Global Forge version check system disabled, no further processing.");
// return;
// } TODO config
if (ForgeConfig.GENERAL.disableVersionCheck.get())
{
LOGGER.info("Global Forge version check system disabled, no further processing.");
return;
}
for (IModInfo entry : gatherMods())
{