mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Use the first ConfigDescription in case multiple are provided
This commit is contained in:
1 parent
23878e9df8
commit
3e33169d51
1 file changed
+2
-2
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user