From cde512fc00aeaab609f9d32db4fc6208757f27a8 Mon Sep 17 00:00:00 2001 From: Lexi Date: Sat, 25 Feb 2023 09:25:11 -0500 Subject: [PATCH] Bugfix bruh --- SpaceWarp/API/SpaceWarpManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;