Fixed character auto save task.
This commit is contained in:
@@ -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:
|
||||
|
@@ -8164,7 +8164,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user