Ignore:
Timestamp:
Sep 3, 2018, 7:11:10 PM (6 years ago)
Author:
alloc
Message:

A17 compatibility changes

File:
1 edited

Legend:

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

    r309 r324  
    1515                        World w = GameManager.Instance.World;
    1616                        foreach (KeyValuePair<int, EntityPlayer> current in w.Players.dict) {
    17                                 ClientInfo ci = ConnectionManager.Instance.GetClientInfoForEntityId (current.Key);
     17                                ClientInfo ci = ConnectionManager.Instance.Clients.ForEntityId (current.Key);
    1818                                Player player = PersistentContainer.Instance.Players [ci.playerId, false];
    1919
     
    3232
    3333                                // Deprecated!
    34                                 p.Add ("experience", new JSONNumber (player != null ? player.Experience : 0));
     34                                p.Add ("experience", new JSONNumber (-1));
    3535
    3636                                p.Add ("level", new JSONNumber (player != null ? player.Level : -1));
Note: See TracChangeset for help on using the changeset viewer.