prevent not-full indicator when over player limit

This commit is contained in:
August 2024-10-21 23:15:24 -04:00
parent c9318d7261
commit 0de98e0bfb
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2

View File

@ -30,7 +30,7 @@ impl ServerResponse {
}
pub fn to_string(&self) -> String {
if let (Some(players), Some(max)) = (self.players, self.max) {
if let (Some(players), Some(max)) >= (self.players, self.max) {
format!("{}/{} ({})", players, max, self.online)
} else {
format!("N/A ({})", self.online)