Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

Commit 2b2b308

Browse files
committed
fix(McPing): 在线人数展示错误
1 parent 4988cb8 commit 2b2b308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils/Minecraft/McPing.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public async Task<McPingResult> PingAsync()
110110
Convert.ToInt32(versionNode["id"]?.ToString() ?? "-1")),
111111
new McPingPlayerResult(
112112
Convert.ToInt32(playersNode["max"]?.ToString() ?? "0"),
113-
Convert.ToInt32(playersNode["max"]?.ToString() ?? "0"),
113+
Convert.ToInt32(playersNode["online"]?.ToString() ?? "0"),
114114
(playersNode["sample"]?.AsArray() ?? []).Select(x => new McPingPlayerSampleResult(x!["name"]?.ToString() ?? "", x["id"]?.ToString() ?? "")).ToList()),
115115
descNode,
116116
retJson["favicon"]?.ToString() ?? string.Empty,

0 commit comments

Comments
 (0)