Merge AutoCraft's config

This commit is contained in:
BruceChen 2022-10-05 19:16:33 +08:00
parent a118dc96e9
commit 25dfcd8856
3 changed files with 138 additions and 247 deletions

View file

@ -126,6 +126,7 @@ namespace MinecraftClient
try
{
document = TomlParser.ParseFile(filepath);
Config = TomletMain.To<GlobalConfig>(document);
}
catch (Exception ex)
{
@ -148,9 +149,6 @@ namespace MinecraftClient
ConsoleIO.WriteLine(Translations.GetOrNull("mcc.run_with_default_settings") ?? "\nMCC is running with default settings.");
return false;
}
Config = TomletMain.To<GlobalConfig>(document);
return false;
}