fix: Fixes directory copying (#1668)
This commit is contained in:
parent
00332e542d
commit
3244704ea2
4 changed files with 58 additions and 15 deletions
|
|
@ -230,7 +230,7 @@ public static class World
|
|||
try
|
||||
{
|
||||
EventSink.InvokeWorldSavePostSnapshot(SavePath, tempPath);
|
||||
PathUtility.MoveDirectory(tempPath, SavePath);
|
||||
PathUtility.MoveDirectoryContents(tempPath, SavePath);
|
||||
Directory.SetLastWriteTimeUtc(SavePath, Core.Now);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue