prevent access error if you do workshop cl install but its already installed

This commit is contained in:
Evil Factory
2022-05-07 12:42:53 -03:00
parent c101711512
commit 789d728f7a
@@ -1305,6 +1305,10 @@ namespace Barotrauma
foreach (string file in filesToCopy) foreach (string file in filesToCopy)
{ {
if (File.Exists(file))
{
File.Move(file, file + ".todelete", true);
}
File.Copy(Path.Combine(path, "Binary", file), file, true); File.Copy(Path.Combine(path, "Binary", file), file, true);
} }