Browse Source

Use the first ConfigDescription in case multiple are provided

ManlyMarco 4 years ago
parent
commit
3e33169d51
1 changed files with 2 additions and 2 deletions
  1. 2 2
      BepInEx/Configuration/ConfigFile.cs

+ 2 - 2
BepInEx/Configuration/ConfigFile.cs

@@ -228,8 +228,8 @@ namespace BepInEx.Configuration
 					{
 					{
 						if (entry.Description != null)
 						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.");
 							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))
 					if (HomelessEntries.TryGetValue(configDefinition, out string homelessValue))