Implemented SaveWorldOnCrash
This commit is contained in:
parent
aecf61afcf
commit
1fa5fdcf04
1 changed files with 2 additions and 2 deletions
|
|
@ -250,7 +250,7 @@ namespace TShockAPI
|
|||
|
||||
if (e.IsTerminating)
|
||||
{
|
||||
if (Main.worldPathName != null)
|
||||
if (Main.worldPathName != null && Config.SaveWorldOnCrash)
|
||||
{
|
||||
Main.worldPathName += ".crash";
|
||||
WorldGen.saveWorld();
|
||||
|
|
@ -669,7 +669,7 @@ namespace TShockAPI
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
Log.Warn(ex.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue