From 1fa5fdcf04024f8fb881ab257958d9e45efca3bd Mon Sep 17 00:00:00 2001 From: high Date: Wed, 17 Aug 2011 17:19:02 -0400 Subject: [PATCH] Implemented SaveWorldOnCrash --- TShockAPI/TShock.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index ce952ecd..68cd999d 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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; }