fix inverted check for SaveGame
This commit is contained in:
@@ -410,7 +410,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public void SaveGame(string path)
|
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);
|
SaveUtil.SaveGame(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user