Fixes data file loading (#145)

This commit is contained in:
Kamron Batman 2020-05-25 00:37:46 -07:00 committed by GitHub
parent eb0f960be6
commit 5ea11cef11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 70 additions and 100 deletions

View file

@ -147,9 +147,9 @@ namespace Server
if (m_Settings == null)
{
Console.ForegroundColor = ConsoleColor.Red;
Utility.PushColor(ConsoleColor.Red);
Console.WriteLine("failed");
Console.ResetColor();
Utility.PopColor();
throw new Exception("Core: Server configuration failed to deserialize.");
}
@ -174,9 +174,9 @@ namespace Server
if (updated)
{
Save();
Console.ForegroundColor = ConsoleColor.Green;
Utility.PushColor(ConsoleColor.Green);
Console.WriteLine($"Core: Configuration saved to {m_RelPath}.");
Console.ResetColor();
Utility.PopColor();
}
}