Ignore:
Timestamp:
Jun 12, 2023, 3:21:34 PM (17 months ago)
Author:
alloc
Message:

24_27_41

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs

    r371 r446  
    1313                        foreach (KeyValuePair<int, EntityPlayer> current in w.Players.dict) {
    1414                                ClientInfo ci = ConnectionManager.Instance.Clients.ForEntityId (current.Key);
    15                                 Player player = PersistentContainer.Instance.Players [ci.InternalId, false];
     15                                Player player = PersistentContainer.Instance.Players.GetByInternalId (ci.InternalId);
    1616
    1717                                JSONObject pos = new JSONObject ();
     
    2222                                JSONObject p = new JSONObject ();
    2323                                p.Add ("steamid", new JSONString (ci.PlatformId.CombinedString));
     24                                p.Add ("crossplatformid", new JSONString (ci.CrossplatformId?.CombinedString ?? ""));
    2425                                p.Add ("entityid", new JSONNumber (ci.entityId));
    2526                                p.Add ("ip", new JSONString (ci.ip));
Note: See TracChangeset for help on using the changeset viewer.