Remove usages of Newtonsoft.Json from StatusHost (#6082)

This commit is contained in:
Pieter-Jan Briers
2022-01-10 01:41:46 +01:00
committed by GitHub
parent 4be7c4a63e
commit 2125f1dda9
3 changed files with 27 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
using System;
using Newtonsoft.Json.Linq;
using System.Text.Json.Nodes;
using Robust.Server.ServerStatus;
using Robust.Shared.IoC;
using Robust.Shared.ViewVariables;
@@ -24,7 +24,7 @@ namespace Content.Server.GameTicking
IoCManager.Resolve<IStatusHost>().OnStatusRequest += GetStatusResponse;
}
private void GetStatusResponse(JObject jObject)
private void GetStatusResponse(JsonNode jObject)
{
// This method is raised from another thread, so this better be thread safe!
lock (_statusShellLock)