Procházet zdrojové kódy

Fix NRE when initializing plugin with no plugin info

ghorsington před 5 roky
rodič
revize
a0c7c59d3b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      BepInEx/Contract/BaseUnityPlugin.cs

+ 1 - 1
BepInEx/Contract/BaseUnityPlugin.cs

@@ -24,7 +24,7 @@ namespace BepInEx
 			if (Chainloader.PluginInfos.TryGetValue(metadata.GUID, out var info))
 				Info = info;
 			else
-				Logger.LogDebug($"Plugin [{metadata.GUID}] wasn't registered through chainloader! PluginInfo property will not be initialized.");
+				Logging.Logger.LogDebug($"Plugin [{metadata.GUID}] wasn't registered through chainloader! PluginInfo property will not be initialized.");
 
 			Logger = Logging.Logger.CreateLogSource(metadata.Name);