Update to Mintaka (thanks @enerdy)
This commit is contained in:
parent
d728a24902
commit
678f6c7cf8
29 changed files with 51 additions and 39 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue