Skip to content

Commit

Permalink
Merge pull request #277 from GrahamKracker/patch-2
Browse files Browse the repository at this point in the history
Update ModHelperGithub.cs
  • Loading branch information
doombubbles authored Oct 22, 2024
2 parents 7f8e976 + 5e39e57 commit ad89afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BloonsTD6 Mod Helper/Api/Internal/ModHelperGithub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public static async Task<string> DownloadAsset(ModHelperData mod, ReleaseAsset r
name = $"{mod.Mod.GetAssembly().GetName().Name}.dll";
}

var downloadFilePath = Path.Combine(mod.EnabledFolder, name);
var downloadFilePath = Path.Combine(mod.Enabled ? mod.EnabledFolder : ModHelper.DisabledModsDirectory, name);
var oldModsFilePath = Path.Combine(ModHelper.OldModsDirectory, name);

try
Expand Down Expand Up @@ -446,4 +446,4 @@ public static void CopyFilesRecursively(DirectoryInfo source, DirectoryInfo targ
file.CopyTo(Path.Combine(target.FullName, file.Name), true);
}
}
}
}

0 comments on commit ad89afd

Please sign in to comment.