Makes server save in background, stops server lag on save
Keeping lag broadcast just in case
This commit is contained in:
parent
473d554de1
commit
058ae345d0
3 changed files with 18 additions and 7 deletions
|
|
@ -101,6 +101,18 @@ namespace TShockAPI
|
|||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the map data
|
||||
/// </summary>
|
||||
public static void SaveWorld()
|
||||
{
|
||||
WorldGen.saveWorld();
|
||||
|
||||
Broadcast("World Saved", Color.Yellow);
|
||||
Console.WriteLine("World backed up");
|
||||
Log.Info(string.Format("World backed up ({0})", Main.worldPathName));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Broadcasts a message to all players
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue