fix: Fixes issue with duping items and serialization, and sector lists. (#1662)
This commit is contained in:
parent
497ea87943
commit
3812a783ca
6 changed files with 32 additions and 53 deletions
|
|
@ -35,15 +35,11 @@ namespace Server.Saves
|
|||
|
||||
public static void Configure()
|
||||
{
|
||||
SavesEnabled = ServerConfiguration.GetOrUpdateSetting("autosave.enabled", true);
|
||||
Delay = ServerConfiguration.GetOrUpdateSetting("autosave.saveDelay", TimeSpan.FromMinutes(5.0));
|
||||
Warning = ServerConfiguration.GetOrUpdateSetting("autosave.warningDelay", TimeSpan.Zero);
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
SavesEnabled = true;
|
||||
}
|
||||
|
||||
public static void ResetAutoSave(TimeSpan saveDelay, TimeSpan warningDelay)
|
||||
{
|
||||
if (saveDelay != Delay || warningDelay != Warning)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue