Fix players not being serialized
This commit is contained in:
parent
8a279f425a
commit
e5a289ea73
@ -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"
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user