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

@@ -182,8 +182,8 @@ ClanVariablesStoreInterval = 15
LazyItemsUpdate = False
# When enabled, this forces (even if using lazy item updates) the items owned by the character to be updated into DB when saving its character.
# Default: False
UpdateItemsOnCharStore = False
# Default: True
UpdateItemsOnCharStore = True
# Also delete from world misc. items dropped by players (all except equip-able items).
# Notes:

View File

@@ -8099,7 +8099,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);
}
}