diff --git a/IPA.Loader/Loader/PluginLoader.cs b/IPA.Loader/Loader/PluginLoader.cs index 65ad6f89..c493b842 100644 --- a/IPA.Loader/Loader/PluginLoader.cs +++ b/IPA.Loader/Loader/PluginLoader.cs @@ -184,14 +184,13 @@ namespace IPA.Loader AssemblyResolver = new CecilLibLoader() }).MainModule; - var iBeatSaberPlugin = pluginModule.ImportReference(typeof(IBeatSaberPlugin)); foreach (var type in pluginModule.Types) { foreach (var inter in type.Interfaces) { var ifType = inter.InterfaceType; - if (iBeatSaberPlugin.FullName == ifType.FullName) + if (typeof(IBeatSaberPlugin).FullName == ifType.FullName) { metadata.PluginType = type; break;