mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix config to use new system properly, without exploding the server.
Separates server specific config into the server config file. Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
12 files changed
+134
-103
No files matched your search
@@ -22,6 +22,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.FMLConfig;
|
||||
import net.minecraftforge.fml.loading.moddiscovery.ModInfo;
|
||||
import net.minecraftforge.forgespi.language.IModInfo;
|
||||
import net.minecraftforge.versions.mcp.MCPVersion;
|
||||
@@ -131,16 +132,13 @@ public class VersionChecker
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
if (ForgeConfig.GENERAL.disableVersionCheck.get())
|
||||
if (!FMLConfig.runVersionCheck())
|
||||
{
|
||||
LOGGER.info("Global Forge version check system disabled, no further processing.");
|
||||
return;
|
||||
}
|
||||
|
||||
for (IModInfo entry : gatherMods())
|
||||
{
|
||||
process(entry);
|
||||
}
|
||||
gatherMods().forEach(this::process);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user