Skip to content

Commit

Permalink
Bugfix bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Feb 25, 2023
1 parent b652951 commit cde512f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpaceWarp/API/SpaceWarpManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private bool TryLoadMod(string codePath, string modName, out Type mainModType)
return false;
}

if (!mainModType.IsAssignableFrom(typeof(Mod)))
if (!typeof(Mod).IsAssignableFrom(mainModType))
{
_modLogger.Error($"Could not load mod: {modName}, the found class ({mainModType.FullName}) with [MainMod] doesn't inherit from {nameof(Mod)}");
mainModType = null;
Expand Down

0 comments on commit cde512f

Please sign in to comment.