diff --git a/DownloadTask.cs b/DownloadTask.cs index f5c08fc..00b0ec6 100644 --- a/DownloadTask.cs +++ b/DownloadTask.cs @@ -274,7 +274,7 @@ private async Task GetPackageInfo() { var downloadKind = DownloadKind.Install; var installed = await this.Plugin.State.GetInstalled(this.CancellationToken.Token); if (installed.TryGetValue(this.PackageId, out var pkg)) { - if (pkg.Variants.Any(variant => variant.Id == this.VariantId)) { + if (pkg.Variants.Any(meta => meta.VariantId == this.VariantId)) { downloadKind = DownloadKind.Update; } } @@ -331,6 +331,7 @@ private async Task TestHardLinks() { b = Path.Join(this.PenumbraModPath, Path.GetRandomFileName()); FileHelper.CreateHardLink(a, b); + this.SupportsHardLinks = true; } catch (InvalidOperationException) { this.SupportsHardLinks = false;