Fix race conditions with saveWorld threading.
This commit is contained in:
parent
2d53001197
commit
061169633d
1 changed files with 4 additions and 4 deletions
|
|
@ -106,11 +106,11 @@ namespace TShockAPI
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void SaveWorld()
|
public static void SaveWorld()
|
||||||
{
|
{
|
||||||
WorldGen.saveWorld();
|
WorldGen.RealsaveWorld();
|
||||||
|
|
||||||
Broadcast("World Saved", Color.Yellow);
|
Broadcast("World saved.", Color.Yellow);
|
||||||
Console.WriteLine("World backed up");
|
Console.WriteLine("World saved.");
|
||||||
Log.Info(string.Format("World backed up ({0})", Main.worldPathName));
|
Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue