Update to Mintaka (thanks @enerdy)

This commit is contained in:
Lucas Nicodemus 2016-12-06 17:36:44 -07:00
parent d728a24902
commit 678f6c7cf8
No known key found for this signature in database
GPG key ID: CEE668CCE1BF2C7C
29 changed files with 51 additions and 39 deletions

View file

@ -62,7 +62,7 @@ namespace TShockAPI
string worldname = Main.worldPathName;
string name = Path.GetFileName(worldname);
Main.worldPathName = Path.Combine(BackupPath, string.Format("{0}.{1:dd.MM.yy-HH.mm.ss}.bak", name, DateTime.UtcNow));
Main.ActiveWorldFileData._path = Path.Combine(BackupPath, string.Format("{0}.{1:dd.MM.yy-HH.mm.ss}.bak", name, DateTime.UtcNow));
string worldpath = Path.GetDirectoryName(Main.worldPathName);
if (worldpath != null && !Directory.Exists(worldpath))
@ -80,7 +80,7 @@ namespace TShockAPI
Console.ForegroundColor = ConsoleColor.Gray;
TShock.Log.Info(string.Format("World backed up ({0}).", Main.worldPathName));
Main.worldPathName = worldname;
Main.ActiveWorldFileData._path = worldname;
}
catch (Exception ex)
{