Rename Utils.ActivePlayers to something better.

Issues related to ICollections being null led to reverting migrating
this to TSPlayer until a better solution is uncovered.
This commit is contained in:
Lucas Nicodemus 2017-12-31 01:30:13 -07:00
parent a5cad284a8
commit df4da817b6
5 changed files with 11 additions and 11 deletions

View file

@ -144,7 +144,7 @@ namespace TShockAPI
return new JsonData()
{
port = Terraria.Netplay.ListenPort,
currentPlayers = TShock.Utils.ActivePlayers(),
currentPlayers = TShock.Utils.GetActivePlayerCount(),
maxPlayers = TShock.Config.MaxSlots,
systemRam = GetTotalSystemRam(ServerApi.RunningMono),
version = TShock.VersionNum.ToString(),