Skip to content

Commit

Permalink
Fix #517
Browse files Browse the repository at this point in the history
  • Loading branch information
bcssov committed Sep 17, 2024
1 parent bf7e931 commit cb88d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IronyModManager.Services/ModMergeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ await ModWriter.WriteDescriptorAsync(new ModWriterParameters
{
// Can we copy this file?
var allowCopy = true;
if (mod.ReplacePath.Any(p => file.StartsWith(p, StringComparison.OrdinalIgnoreCase)))
if (mod.ReplacePath != null && mod.ReplacePath.Any(p => file.StartsWith(p, StringComparison.OrdinalIgnoreCase)))
{
// So this path is mentioned in replace paths, now we need to verify whether this thing can be copied... Believe that handling of replace_path in the game is so any mod before does not copy its output *only* the ones following with replace path will be copied.
var replacePath = mod.ReplacePath.LastOrDefault(p => file.StartsWith(p, StringComparison.OrdinalIgnoreCase));
Expand Down

0 comments on commit cb88d76

Please sign in to comment.