Fix SaveManager.cs
This commit is contained in:
parent
952c7ef333
commit
84c6d97f6d
1 changed files with 3 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Terraria;
|
using Terraria;
|
||||||
|
using Terraria.Map;
|
||||||
using TerrariaApi.Server;
|
using TerrariaApi.Server;
|
||||||
|
|
||||||
namespace TShockAPI
|
namespace TShockAPI
|
||||||
|
|
@ -125,10 +126,10 @@ namespace TShockAPI
|
||||||
if (task.direct)
|
if (task.direct)
|
||||||
{
|
{
|
||||||
OnSaveWorld(new WorldSaveEventArgs());
|
OnSaveWorld(new WorldSaveEventArgs());
|
||||||
WorldFile.RealSaveWorld(task.resetTime);
|
Main.Map.Save();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
WorldFile.saveWorld(task.resetTime);
|
Main.Map.Save();
|
||||||
TShock.Utils.Broadcast("World saved.", Color.Yellow);
|
TShock.Utils.Broadcast("World saved.", Color.Yellow);
|
||||||
TShock.Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
|
TShock.Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue