From e5a289ea73b8d90c3d850476b798a4742a089c73 Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Wed, 13 Jan 2021 12:39:02 +0100 Subject: [PATCH] Fix players not being serialized --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9e19825..56d79c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mcquery" -version = "0.1.0" +version = "0.1.1" description = "Query Minecraft servers with Rust" authors = ["EliasSchriefer "] license = "MIT OR Apache-2.0" diff --git a/src/lib.rs b/src/lib.rs index 6dc12ee..d48cf12 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -397,7 +397,7 @@ impl FullQueryRequest { .take_while(|b| **b != 0x00) .map(|&b| b) .collect(); - response_buffer.drain(0..player.len()); + response_buffer.drain(0..player.len() + 1); if player.len() == 0 { break; }