Compare commits

...

2 Commits

Author SHA1 Message Date
Pieter-Jan Briers
7ef2cec121 Fix names parsed from build.json 2020-12-17 15:28:01 +01:00
Pieter-Jan Briers
40bff81017 Fix nullable warning. 2020-12-17 00:58:26 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -172,8 +172,8 @@ namespace Robust.Server.ServerStatus
private sealed class BuildInfo
{
[JsonProperty("engine_version")] public string EngineVersion = default!;
[JsonProperty("hashes")] public string? Hash;
[JsonProperty("downloads")] public string Download = default!;
[JsonProperty("hash")] public string? Hash;
[JsonProperty("download")] public string Download = default!;
[JsonProperty("fork_id")] public string ForkId = default!;
[JsonProperty("version")] public string Version = default!;
}

View File

@@ -480,7 +480,7 @@ namespace Robust.Shared.Serialization
var hashStr = Convert.ToBase64String(MappedStringsHash);
hashStr = ConvertToBase64Url(hashStr);
var fileName = CacheForHash(hashStr);
var fileName = CacheForHash(hashStr)!;
using var file = File.OpenWrite(fileName);
stream.CopyTo(file);