Skip to content

Commit

Permalink
Actually handle 1.2 mods correctly (eww)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Oct 4, 2023
1 parent e7b54f8 commit 1693054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpaceWarp.Core/Backend/Modding/PluginRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static void RegisterSingleSpaceWarpPlugin(BaseSpaceWarpPlugin plugin)
var directoryInfo = new FileInfo(modInfoPath).Directory;
var descriptor = new SpaceWarpPluginDescriptor(
plugin,
metadata.ModID,
metadata.Spec != SpecVersion.V1_2 ? metadata.ModID : plugin.Info.Metadata.GUID,
metadata.Name,
metadata,
directoryInfo,
Expand Down Expand Up @@ -265,7 +265,7 @@ private static void RegisterSingleBepInExPlugin(BaseUnityPlugin plugin)
if (!TryReadModInfo(plugin, modInfoPath, folderPath, out var metadata)) return;
var descriptor = new SpaceWarpPluginDescriptor(
new BepInExModAdapter(plugin),
metadata.ModID,
metadata.Spec != SpecVersion.V1_2 ? metadata.ModID : plugin.Info.Metadata.GUID,
metadata.Name,
metadata,
directoryInfo,
Expand Down

0 comments on commit 1693054

Please sign in to comment.