Use the first ConfigDescription in case multiple are provided

This commit is contained in:
ManlyMarco committed 2019-08-29 19:42:16 +02:00
1 parent 23878e9df8
commit 3e33169d51
1 file changed
+2 -2
+2 -2
View File
@@ -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))