Parcourir la source

Use the first ConfigDescription in case multiple are provided

ManlyMarco il y a 4 ans
Parent
commit
3e33169d51
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      BepInEx/Configuration/ConfigFile.cs

+ 2 - 2
BepInEx/Configuration/ConfigFile.cs

@@ -228,8 +228,8 @@ namespace BepInEx.Configuration
 					{
 						if (entry.Description != null)
 							Logger.Log(LogLevel.Warning, $"Tried to add configDescription to setting {configDefinition} when it already had one defined. Only add configDescription once or a random one will be used.");
-
-						entry.SetDescription(configDescription);
+						else
+							entry.SetDescription(configDescription);
 					}
 
 					if (HomelessEntries.TryGetValue(configDefinition, out string homelessValue))