Skip to content

Commit

Permalink
Fix patching multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-bures committed Jan 14, 2024
1 parent c152d50 commit a8d46ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Space Warp",
"description": "Space Warp is an API for KSP 2 mod developers.",
"source": "https://github.com/SpaceWarpDev/SpaceWarp",
"version": "1.8.0",
"version": "1.8.1",
"version_check": "https://raw.githubusercontent.com/SpaceWarpDev/SpaceWarp/main/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json",
"ksp2_version": {
"min": "0.2.0",
Expand All @@ -19,8 +19,5 @@
"max": "*"
}
}
],
"patchers": [
"SpaceWarpPatcher.dll"
]
}
2 changes: 1 addition & 1 deletion src/SpaceWarp.Preload/Entrypoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static IEnumerable<string> TargetDLLs
{
LogSource = Logger.CreateLogSource("SpaceWarp.Preload");
AddEnabledPatchers();
return Patchers.SelectMany(patcher => patcher.DLLsToPatch).ToList();
return Patchers.SelectMany(patcher => patcher.DLLsToPatch).ToHashSet();
}
}

Expand Down

0 comments on commit a8d46ec

Please sign in to comment.