Build 0.18.4.0

This commit is contained in:
Markus Isberg
2022-05-31 23:13:05 +09:00
parent 077917fa5d
commit 64db1a6a44
175 changed files with 4916 additions and 2393 deletions
@@ -414,7 +414,7 @@ namespace Barotrauma.Steam
{
await Task.Yield();
Identifier extension = Path.GetExtension(from).ToIdentifier();
if (extension == ".xml" && shouldCorrectPaths == ShouldCorrectPaths.Yes)
if (extension == ".xml")
{
try
{
@@ -427,10 +427,14 @@ namespace Barotrauma.Steam
{
throw new Exception($"Could not load \"{from}\": doc is null");
}
await CorrectPaths(
fileListDir: fileListDir,
modName: modName,
element: doc.Root ?? throw new NullReferenceException());
if (shouldCorrectPaths == ShouldCorrectPaths.Yes)
{
await CorrectPaths(
fileListDir: fileListDir,
modName: modName,
element: doc.Root ?? throw new NullReferenceException());
}
doc.SaveSafe(to);
return;
}