Fix players not being serialized

This commit is contained in:
Elias Schriefer 2021-01-13 12:39:02 +01:00
parent 8a279f425a
commit e5a289ea73
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "mcquery" name = "mcquery"
version = "0.1.0" version = "0.1.1"
description = "Query Minecraft servers with Rust" description = "Query Minecraft servers with Rust"
authors = ["EliasSchriefer <elischriefer@gmail.com>"] authors = ["EliasSchriefer <elischriefer@gmail.com>"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

View File

@ -397,7 +397,7 @@ impl FullQueryRequest {
.take_while(|b| **b != 0x00) .take_while(|b| **b != 0x00)
.map(|&b| b) .map(|&b| b)
.collect(); .collect();
response_buffer.drain(0..player.len()); response_buffer.drain(0..player.len() + 1);
if player.len() == 0 { if player.len() == 0 {
break; break;
} }