Fix save world issue
This commit is contained in:
parent
b0a678710c
commit
c090d9a9f6
2 changed files with 11 additions and 3 deletions
|
|
@ -94,6 +94,7 @@ namespace TShockAPI
|
|||
public override void Initialize()
|
||||
{
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
|
||||
#if DEBUG
|
||||
Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All, false);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -105,8 +105,15 @@ namespace TShockAPI
|
|||
/// Saves the map data
|
||||
/// </summary>
|
||||
public static void SaveWorld()
|
||||
{
|
||||
try
|
||||
{
|
||||
WorldGen.RealsaveWorld();
|
||||
}
|
||||
catch
|
||||
{
|
||||
WorldGen.saveWorld();
|
||||
}
|
||||
|
||||
Broadcast("World saved.", Color.Yellow);
|
||||
Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue