Fix SSC dumper not working

Dumper was being called on the wrong thing (the config and not the
settings).
This commit is contained in:
Lucas Nicodemus 2022-10-18 23:43:02 -07:00
parent fa9717debf
commit 1b306ff39d
No known key found for this signature in database

View file

@ -85,7 +85,7 @@ namespace TShockAPI.Configuration
public static void DumpDescriptions()
{
var sb = new StringBuilder();
var defaults = new ServerSideConfig();
var defaults = new SscSettings();
foreach (var field in defaults.GetType().GetFields().OrderBy(f => f.Name))
{
@ -103,8 +103,8 @@ namespace TShockAPI.Configuration
sb.AppendLine("## {0} ".SFormat(name));
sb.AppendLine("{0}".SFormat(desc));
sb.AppendLine("* *Field type*: `{0}`".SFormat(type));
sb.AppendLine("* *Default*: `{0}`".SFormat(def));
sb.AppendLine("* **Field type**: `{0}`".SFormat(type));
sb.AppendLine("* **Default**: `{0}`".SFormat(def));
sb.AppendLine();
}