fix: Fixes directory copying (#1668)

This commit is contained in:
Kamron Batman 2024-02-09 23:25:20 -08:00 • committed by GitHub
parent 00332e542d
commit 3244704ea2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 58 additions and 15 deletions

View file

@ -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)