From a86799cbb9ec91563a1012ad16c41e3d8d6674d6 Mon Sep 17 00:00:00 2001 From: MarioE Date: Mon, 8 Jul 2013 21:39:14 -0400 Subject: [PATCH] Changed the server's lighting mode to 2. This will fix any glitches caused by the decreased world size. --- TShockAPI/TShock.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index cd85d530..7449e780 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -157,11 +157,11 @@ namespace TShockAPI Log.Warn(logPathSetupWarning); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; - } - catch(Exception ex) - { - // Will be handled by the server api and written to its crashlog.txt. - throw new Exception("Fatal TShock initialization exception. See inner exception for details.", ex); + } + catch(Exception ex) + { + // Will be handled by the server api and written to its crashlog.txt. + throw new Exception("Fatal TShock initialization exception. See inner exception for details.", ex); } // Further exceptions are written to TShock's log from now on. @@ -571,6 +571,7 @@ namespace TShockAPI Regions.ReloadAllRegions(); + Lighting.lightMode = 2; StatTracker.CheckIn(); FixChestStacks();