stupid mistake
This commit is contained in:
parent
0de98e0bfb
commit
4aa3432606
@ -26,11 +26,11 @@ impl ServerResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_full(&self) -> bool {
|
pub fn is_full(&self) -> bool {
|
||||||
self.players == self.max
|
self.players >= self.max
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_string(&self) -> String {
|
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)
|
format!("{}/{} ({})", players, max, self.online)
|
||||||
} else {
|
} else {
|
||||||
format!("N/A ({})", self.online)
|
format!("N/A ({})", self.online)
|
||||||
|
Loading…
Reference in New Issue
Block a user