Remove Utils.ActivePlayers
Duplicated what an array already stored and told us, but added code and was obscure. It predated TSPlayers existing.
This commit is contained in:
parent
9648e9ac0c
commit
b613fdcda6
6 changed files with 11 additions and 19 deletions
|
|
@ -144,7 +144,7 @@ namespace TShockAPI
|
|||
return new JsonData()
|
||||
{
|
||||
port = Terraria.Netplay.ListenPort,
|
||||
currentPlayers = TShock.Utils.ActivePlayers(),
|
||||
currentPlayers = TShock.Players.Length,
|
||||
maxPlayers = TShock.Config.MaxSlots,
|
||||
systemRam = GetTotalSystemRam(ServerApi.RunningMono),
|
||||
version = TShock.VersionNum.ToString(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue