diff --git a/SpaceWarp/API/SpaceWarpManager.cs b/SpaceWarp/API/SpaceWarpManager.cs index 7a1612e5..24e27040 100644 --- a/SpaceWarp/API/SpaceWarpManager.cs +++ b/SpaceWarp/API/SpaceWarpManager.cs @@ -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;