fix inverted check for SaveGame

This commit is contained in:
EvilFactory
2022-08-11 19:14:14 -03:00
parent 53c586b22f
commit 582d6a5c26

View File

@@ -410,7 +410,7 @@ namespace Barotrauma
public void SaveGame(string path)
{
if (LuaCsFile.CanWriteToPath(path)) { throw new ScriptRuntimeException($"Saving files to {path} is disallowed."); }
if (!LuaCsFile.CanWriteToPath(path)) { throw new ScriptRuntimeException($"Saving files to {path} is disallowed."); }
SaveUtil.SaveGame(path);
}