Adding the SaveWorld event caused an infinite loop of saves, removed it to fix the infinite loop.
This commit is contained in:
parent
78fce47cf8
commit
13fb4b3156
1 changed files with 0 additions and 9 deletions
|
|
@ -201,7 +201,6 @@ namespace TShockAPI
|
|||
NpcHooks.SetDefaultsInt += OnNpcSetDefaults;
|
||||
ProjectileHooks.SetDefaults += OnProjectileSetDefaults;
|
||||
WorldHooks.StartHardMode += OnStartHardMode;
|
||||
WorldHooks.SaveWorld += OnSaveWorld;
|
||||
|
||||
GetDataHandlers.InitGetDataHandler();
|
||||
Commands.InitCommands();
|
||||
|
|
@ -977,14 +976,6 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
|
||||
private void OnSaveWorld(bool resettime, HandledEventArgs e)
|
||||
{
|
||||
Utils.Broadcast("Saving world. Momentary lag might result from this.", Color.Red);
|
||||
Thread SaveWorld = new Thread(Utils.SaveWorld);
|
||||
SaveWorld.Start();
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OnStartHardMode(HandledEventArgs e)
|
||||
{
|
||||
if (Config.DisableHardmode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue