Fix save world issue

This commit is contained in:
Twitchy 2011-07-12 20:38:03 +12:00
parent b0a678710c
commit c090d9a9f6
2 changed files with 11 additions and 3 deletions

View file

@ -106,7 +106,14 @@ namespace TShockAPI
/// </summary>
public static void SaveWorld()
{
WorldGen.RealsaveWorld();
try
{
WorldGen.RealsaveWorld();
}
catch
{
WorldGen.saveWorld();
}
Broadcast("World saved.", Color.Yellow);
Log.Info(string.Format("World saved at ({0})", Main.worldPathName));