Example #1
0
        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();
        }
Example #2
0
        void OnServerTick(ref HookContext ctx, ref HookArgs.ServerTick args)
        {
            if (Main.ServerSideCharacter)
            {
                CharacterManager.SaveAll();
            }

            SaveManager.OnUpdate();
            BackupManager.OnUpdate();

            RunComponent(ComponentEvent.ServerTick);
        }