From 0de98e0bfba09a6e6ad0458de07942111c1eb102 Mon Sep 17 00:00:00 2001 From: shibedrill Date: Mon, 21 Oct 2024 23:15:24 -0400 Subject: [PATCH] prevent not-full indicator when over player limit --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 434d4ac..46c8b56 100644 --- a/src/types.rs +++ b/src/types.rs @@ -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)