The server status response sample field is optional (#18)

This commit is contained in:
Tim Visée 2021-11-09 20:06:51 +01:00 committed by GitHub
parent f19f598abe
commit 31041b8fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ pub struct ServerVersion {
pub struct OnlinePlayers { pub struct OnlinePlayers {
pub max: u32, pub max: u32,
pub online: u32, pub online: u32,
#[serde(default)]
pub sample: Vec<OnlinePlayer>, pub sample: Vec<OnlinePlayer>,
} }