From e22075f07c50ca1a51e92be19cb2db3db25a5628 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 26 Jun 2020 16:44:21 -0400 Subject: [PATCH] Fix custom versions not being written properly to state files --- src/Tgstation.Server.Host/Components/Byond/ByondManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs b/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs index 1e4bb2c2b6..5e1e0312f5 100644 --- a/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs +++ b/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs @@ -187,7 +187,7 @@ namespace Tgstation.Server.Host.Components.Byond await byondInstaller.InstallByond(extractPath, version, cancellationToken).ConfigureAwait(false); // make sure to do this last because this is what tells us we have a valid version in the future - await ioManager.WriteAllBytes(ioManager.ConcatPath(versionKey, VersionFileName), Encoding.UTF8.GetBytes(version.ToString()), cancellationToken).ConfigureAwait(false); + await ioManager.WriteAllBytes(ioManager.ConcatPath(versionKey, VersionFileName), Encoding.UTF8.GetBytes(versionKey), cancellationToken).ConfigureAwait(false); } catch (WebException e) {