diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 37373698..ba855bc0 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -97,6 +97,10 @@ namespace TShockAPI public override void Initialize() { + if (!Directory.Exists(SavePath)) + { + Directory.CreateDirectory(SavePath); + } if (File.Exists(Path.Combine(SavePath, "tshock.pid"))) { Log.ConsoleInfo("TShock was improperly shut down. Deleting invalid pid file...");