- Timestamp:
- Sep 3, 2018, 7:11:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r309 r324 15 15 World w = GameManager.Instance.World; 16 16 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); 18 18 Player player = PersistentContainer.Instance.Players [ci.playerId, false]; 19 19 … … 32 32 33 33 // Deprecated! 34 p.Add ("experience", new JSONNumber ( player != null ? player.Experience : 0));34 p.Add ("experience", new JSONNumber (-1)); 35 35 36 36 p.Add ("level", new JSONNumber (player != null ? player.Level : -1));
Note:
See TracChangeset
for help on using the changeset viewer.