mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Removal of ToList()
This commit is contained in:
parent
9f5cf132f0
commit
7af5f90e30
10 changed files with 48 additions and 42 deletions
|
|
@ -456,8 +456,8 @@ namespace ServerManagerTool.Lib
|
|||
// BH - commented out until Funcom fix the Online player status column in the world save database
|
||||
//var gameFile = GetServerWorldFile();
|
||||
//var playerCount = DataContainer.GetOnlinePlayerCount(gameFile);
|
||||
var playerInfo = gameServer?.GetPlayers()?.Where(p => !string.IsNullOrWhiteSpace(p.Name?.Trim())).ToList();
|
||||
var playerCount = playerInfo?.Count ?? -1;
|
||||
var playerInfo = gameServer?.GetPlayers()?.Where(p => !string.IsNullOrWhiteSpace(p.Name?.Trim()));
|
||||
var playerCount = playerInfo?.Count() ?? -1;
|
||||
|
||||
// check if anyone is logged into the server
|
||||
if (playerCount <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue