Skip to content

Commit ef88137

Browse files
committed
Skip self-update for older plugin builds
Treat CDN plugin versions that are equal to or older than the installed version as no update available, avoiding redundant or regressive self-update attempts.
1 parent c020300 commit ef88137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Update/PluginSelfUpdateBase.TryPerformUpdate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected virtual async Task<nint> TryPerformUpdateAsync(string? outputDir, bool
4545

4646
GameVersion currentPluginVersion = SharedStatic.CurrentPluginVersion;
4747
GameVersion cdnPluginVersion = info.PluginVersion;
48-
if (cdnPluginVersion == currentPluginVersion)
48+
if (cdnPluginVersion <= currentPluginVersion)
4949
{
5050
return SelfUpdateReturnInfo.CreateToNativeMemory(SelfUpdateReturnCode.NoAvailableUpdate);
5151
}

0 commit comments

Comments
 (0)