mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix recursion in MetadataHelper.GetMetadata
This commit is contained in:
1 parent
4612121615
commit
e4a61ebad6
1 file changed
+1
-1
@@ -151,7 +151,7 @@ namespace BepInEx
|
||||
/// </summary>
|
||||
/// <param name="plugin">The plugin instance.</param>
|
||||
/// <returns>The BepInPlugin metadata of the plugin instance.</returns>
|
||||
public static BepInPlugin GetMetadata(object plugin) => GetMetadata(plugin.GetType());
|
||||
public static BepInPlugin GetMetadata(object plugin) => GetMetadata(plugin as BaseUnityPlugin);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the specified attributes of a type, if they exist.
|
||||
|
||||
Reference in new issue
Block a user