diff --git a/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs b/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs index 643561f2c..355561b44 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs @@ -1302,9 +1302,13 @@ namespace Barotrauma File.Move("System.Reflection.Metadata.dll", "System.Reflection.Metadata.dll.old", true); File.Move("System.Collections.Immutable.dll", "System.Collections.Immutable.dll.old", true); File.Move("System.Runtime.CompilerServices.Unsafe.dll", "System.Runtime.CompilerServices.Unsafe.dll.old", true); - + foreach (string file in filesToCopy) { + if (File.Exists(file)) + { + File.Move(file, file + ".todelete", true); + } File.Copy(Path.Combine(path, "Binary", file), file, true); }