aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-09-01 19:26:21 -0500
committermat <github@matdoes.dev>2022-09-01 19:26:21 -0500
commit4d072d8057518fe233b8e7390f6c1f4c54b1cfc0 (patch)
tree4640c929547ec20cf1669b1d7d74cc1638916d9a
parentd564b4cc4fc6c823cb90c1ba931a9481aa9b5e21 (diff)
downloadazalea-drasl-4d072d8057518fe233b8e7390f6c1f4c54b1cfc0.tar.xz
sample can be empty
-rwxr-xr-xazalea-protocol/src/packets/status/clientbound_status_response_packet.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs b/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs
index 457e6e61..0fa0f4b9 100755
--- a/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs
+++ b/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs
@@ -21,6 +21,7 @@ pub struct SamplePlayer {
pub struct Players {
pub max: i32,
pub online: i32,
+ #[serde(default)]
pub sample: Vec<SamplePlayer>,
}