stupid mistake

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

View File

@ -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)