Skip to content

Commit 6f7d90c

Browse files
Remove '0' padding in /ping, since no one has any idea why it is there.
1 parent 9aea2d7 commit 6f7d90c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

fCraft/Commands/InfoCommands.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,12 +2084,9 @@ static void PingListHandler(Player player, CommandReader cmd) {
20842084
}
20852085

20862086
Player[] list = candidates.Skip(fixOffset(offset, candidates.Count())).Take(10).ToArray();
2087-
int pad = list[0].Ping.Format().Length;
2088-
player.Message("Ping/Latency List:");
2089-
2087+
player.Message("Ping/Latency List:");
20902088
for (int i = 0; i < list.Length; i++) {
2091-
player.Message(" &7{1}&S - {0}", list[i].Info.ClassyName,
2092-
list[i].Ping.Format().PadLeft(pad, '0'));
2089+
player.Message(" &7{1}&S - {0}", list[i].Info.ClassyName, list[i].Ping.Format());
20932090
}
20942091
player.Message("Showing players {0}-{1} (out of {2}).", offset + 1, offset + list.Length, candidates.Count());
20952092
}

0 commit comments

Comments
 (0)