From 4aa3432606f03f3daab3236053a5525ec550ee9d Mon Sep 17 00:00:00 2001 From: shibedrill Date: Mon, 21 Oct 2024 23:24:39 -0400 Subject: [PATCH] stupid mistake --- src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.rs b/src/types.rs index 46c8b56..98a027d 100644 --- a/src/types.rs +++ b/src/types.rs @@ -26,11 +26,11 @@ impl ServerResponse { } pub fn is_full(&self) -> bool { - self.players == self.max + self.players >= self.max } 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)