Skip to content

Commit

Permalink
JSON API: fix Players[]/Tagged to use seeking instead of the remove…
Browse files Browse the repository at this point in the history
…d `lastTagPacket`
  • Loading branch information
Istador committed May 4, 2024
1 parent 96ac915 commit 29878e5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Server/JsonApi/ApiRequestStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ private static dynamic FromClient(Context ctx, Client c) {


private static bool? GetTagged(Client c) {
object? lastTagPacket = null;
c.Metadata.TryGetValue("lastTagPacket", out lastTagPacket);
if (lastTagPacket == null) { return null; }
return ((TagPacket) lastTagPacket).IsIt;
object? seeking = null;
c.Metadata.TryGetValue("seeking", out seeking);
return (bool?) seeking;
}


Expand Down

0 comments on commit 29878e5

Please sign in to comment.