diff --git a/BepInEx/Contract/Attributes.cs b/BepInEx/Contract/Attributes.cs index df83153..e5989c6 100644 --- a/BepInEx/Contract/Attributes.cs +++ b/BepInEx/Contract/Attributes.cs @@ -151,7 +151,7 @@ namespace BepInEx /// /// The plugin instance. /// The BepInPlugin metadata of the plugin instance. - public static BepInPlugin GetMetadata(object plugin) => GetMetadata(plugin.GetType()); + public static BepInPlugin GetMetadata(object plugin) => GetMetadata(plugin as BaseUnityPlugin); /// /// Gets the specified attributes of a type, if they exist.