- Timestamp:
- Jun 12, 2023, 3:21:34 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r371 r446 13 13 foreach (KeyValuePair<int, EntityPlayer> current in w.Players.dict) { 14 14 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); 16 16 17 17 JSONObject pos = new JSONObject (); … … 22 22 JSONObject p = new JSONObject (); 23 23 p.Add ("steamid", new JSONString (ci.PlatformId.CombinedString)); 24 p.Add ("crossplatformid", new JSONString (ci.CrossplatformId?.CombinedString ?? "")); 24 25 p.Add ("entityid", new JSONNumber (ci.entityId)); 25 26 p.Add ("ip", new JSONString (ci.ip));
Note:
See TracChangeset
for help on using the changeset viewer.