mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Properly serializes General:ConfigVersion in setup
This commit is contained in:
@@ -19,6 +19,7 @@ using System.Threading.Tasks;
|
||||
using Tgstation.Server.Host.Configuration;
|
||||
using Tgstation.Server.Host.Core;
|
||||
using Tgstation.Server.Host.Database;
|
||||
using Tgstation.Server.Host.Extensions.Converters;
|
||||
using Tgstation.Server.Host.IO;
|
||||
using Tgstation.Server.Host.System;
|
||||
using YamlDotNet.Serialization;
|
||||
@@ -841,7 +842,9 @@ namespace Tgstation.Server.Host.Setup
|
||||
{ SwarmConfiguration.Section, swarmConfiguration },
|
||||
};
|
||||
|
||||
var serializer = new SerializerBuilder().Build();
|
||||
var serializer = new SerializerBuilder()
|
||||
.WithTypeConverter(new VersionConverter())
|
||||
.Build();
|
||||
|
||||
var serializedYaml = serializer.Serialize(map);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user