void OnServerTick(ref HookContext ctx, ref HookArgs.ServerTick args) { if (Terraria.Main.ServerSideCharacter) { ServerCharacters.CharacterManager.SaveAll(); } TDSM.Core.Data.Management.SaveManager.OnUpdate(); TDSM.Core.Data.Management.BackupManager.OnUpdate(); }
void OnServerTick(ref HookContext ctx, ref HookArgs.ServerTick args) { if (Main.ServerSideCharacter) { CharacterManager.SaveAll(); } SaveManager.OnUpdate(); BackupManager.OnUpdate(); RunComponent(ComponentEvent.ServerTick); }