From 34ca8b8f9974a342c9729cf9c425d277512e40d6 Mon Sep 17 00:00:00 2001 From: goaaats Date: Tue, 1 Apr 2025 19:58:19 +0200 Subject: [PATCH] Fix updates failing due to flipped WorkingPluginId check --- Dalamud/Plugin/Internal/PluginManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Plugin/Internal/PluginManager.cs b/Dalamud/Plugin/Internal/PluginManager.cs index ccae6dd06..a20f87241 100644 --- a/Dalamud/Plugin/Internal/PluginManager.cs +++ b/Dalamud/Plugin/Internal/PluginManager.cs @@ -1432,8 +1432,8 @@ internal class PluginManager : IInternalDisposableService else { // If we are doing anything other than a fresh install, not having a workingPluginId is an error that must be fixed - if (inheritedWorkingPluginId != null) - throw new InvalidOperationException("Inherited WorkingPluginId must not be null"); + if (inheritedWorkingPluginId == null) + throw new ArgumentNullException(nameof(inheritedWorkingPluginId), "Inherited WorkingPluginId must not be null when updating"); } // Ensure that we have a testing opt-in for this plugin if we are installing a testing version