Fixed character auto save task.

This commit is contained in:
MobiusDevelopment
2019-11-21 18:25:46 +00:00
parent 6d43655b45
commit c61879d264
34 changed files with 51 additions and 52 deletions

View File

@ -8162,7 +8162,7 @@ public class PlayerInstance extends Playable
{
if ((Config.CHAR_DATA_STORE_INTERVAL > 0) && (_autoSaveTask == null))
{
_autoSaveTask = ThreadPool.scheduleAtFixedRate(this::autoSave, 300_000L, TimeUnit.MINUTES.toMillis(Config.CHAR_DATA_STORE_INTERVAL));
_autoSaveTask = ThreadPool.scheduleAtFixedRate(this::autoSave, Config.CHAR_DATA_STORE_INTERVAL, Config.CHAR_DATA_STORE_INTERVAL);
}
}