diff --git a/MosswartMassacre/PluginCore.cs b/MosswartMassacre/PluginCore.cs index e99459c..bbd640a 100644 --- a/MosswartMassacre/PluginCore.cs +++ b/MosswartMassacre/PluginCore.cs @@ -66,7 +66,6 @@ namespace MosswartMassacre private static Timer vitalsTimer; private static System.Windows.Forms.Timer commandTimer; private static Timer characterStatsTimer; - private static Timer _updateCheckTimer; private static readonly Queue pendingCommands = new Queue(); private static RareTracker _staticRareTracker; public static bool RareMetaEnabled @@ -199,12 +198,6 @@ namespace MosswartMassacre commandTimer.Dispose(); commandTimer = null; } - if (_updateCheckTimer != null) - { - _updateCheckTimer.Stop(); - _updateCheckTimer.Dispose(); - _updateCheckTimer = null; - } // Initialize kill tracker (owns the 1-sec stats timer) _killTracker = new KillTracker( @@ -303,17 +296,6 @@ namespace MosswartMassacre } } - // Auto-update: check for updates 30s after startup - _updateCheckTimer = new Timer(30000); - _updateCheckTimer.AutoReset = false; - _updateCheckTimer.Elapsed += (s, ev) => - { - Task.Run(() => UpdateManager.CheckAndInstallAsync()); - _updateCheckTimer?.Dispose(); - _updateCheckTimer = null; - }; - _updateCheckTimer.Start(); - } catch (Exception ex) { @@ -379,13 +361,6 @@ namespace MosswartMassacre characterStatsTimer = null; } - if (_updateCheckTimer != null) - { - _updateCheckTimer.Stop(); - _updateCheckTimer.Dispose(); - _updateCheckTimer = null; - } - // Dispose quest manager if (questManager != null) { diff --git a/MosswartMassacre/UpdateManager.cs b/MosswartMassacre/UpdateManager.cs index 6eaa70c..7f85741 100644 --- a/MosswartMassacre/UpdateManager.cs +++ b/MosswartMassacre/UpdateManager.cs @@ -206,26 +206,6 @@ namespace MosswartMassacre } } - /// - /// Check for update and auto-install if available. Used by startup auto-update. - /// - public static async Task CheckAndInstallAsync() - { - try - { - bool checkOk = await CheckForUpdateAsync(); - if (checkOk && updateAvailable) - { - PluginCore.WriteToChat("[Update] Auto-installing update..."); - await DownloadAndInstallUpdateAsync(); - } - } - catch (Exception ex) - { - PluginCore.WriteToChat($"[Update] Auto-update failed: {ex.Message}"); - } - } - private static string GetLocalDllPath() { // Get the path to the current DLL diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll index 57cb89b..5e74667 100644 Binary files a/MosswartMassacre/bin/Release/MosswartMassacre.dll and b/MosswartMassacre/bin/Release/MosswartMassacre.dll differ